- yum install wordpress
- cat /usr/share/doc/wordpress-4.1/README.fedora(按照里面的步骤建立数据库)
- 访问http://host/wordpress 发现这个错误 "client denied by server configuration: /usr/share/wordpress/"
- 检查 vi /etc/httpd/logs/error_log 发现 "client denied by server configuration: /usr/share/wordpress/" 说明apache已经把请求转到指定目录,但是由于apache的设置被禁止了
- 检查 vi /etc/httpd/conf/httpd.conf 没找到wordpress设置,但是发现"Include conf.d/*.conf"
- 进一步检查 vi /etc/httpd/conf.d/wordpress.conf 发现默认选项是 "Deny from All" 只允许本机的。所以改成 "Allow from All"就好
- service httpd reload
在Centos上安装wordpress
最新推荐文章于 2021-02-07 07:34:50 发布