-
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
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30094666/viewspace-1417833/
,如需转载,请注明出处,否则将追究法律责任。