防止国外恶意评论,此篇文章加入密码:123456
网上有很多教程,大部分都是一些皮毛并没有解决实际问题。
那么今天来看看这个问题。
- 在/var/www/html/wordpress 路径下找到wp-config.php
-
找到define(‘WPLANG’,”); 如果没有的话手动敲一个,vi编辑器使用就不介绍了吧。
-
改成define(‘WPLANG’,’zh_CN’);
- ESC :wq保存退出
卷中:完了,再次进入dashbord,此时会有updates更新提示,确认。如果提示要输入FTP账号密码,那么又有得设置了。
如下图/etc/httpd/conf 目录下的httpd.conf配置文件
可以发现这里User和Group都是属于apache账号下面的,但是现在登进来的是root(你们可能创建了其他账号,只要不是apache)
当前html目录所有者为root,然而声明文件中指定的是apache
-
chown -R apache:apache /var/www/html
- 修改当前html目录所有者权限
- 打开dashbord,发现不再需要键入FTP账号密码了
done!
When someone writes an paragraph he/she keeps the idea of a user in his/her brain that how
a user can understand it. Therefore that’s why this piece of writing is amazing.
Thanks!
经管你是电脑人,但语句是所有自动评论里读得还通顺的。。放你过去了
Hello there! This is my first visit to your blog!
We are a group of volunteers and starting a new project in a community in the same niche.
Your blog provided us useful information to work
on. You have done a marvellous job!
Maybe..
Evеryone laughed trying t᧐ imagіne what kind of bіrthⅾay pparty Mary
and Joseph gave foг Jesus when He was six.
Larry questioned, ?Ι bet һe prrefеrred thhe
identical kinbd of toys wе like.
???Bot?