在centos 6.9安装wordpress,浏览器不能访问问题
在centos 6.9安装wordpress浏览器访问先出现403错误,然后提示access denied
nginx错误打印FastCGI sent in stderr: "Unable to open primary script
1.
vi /etc/php-fpm.d/www.conf #编辑
user = nginx #修改用户为nginx
group = nginx #修改组为nginx
service php-fpm restart
user = nginx #修改用户为nginx
group = nginx #修改组为nginx
service php-fpm restart
chown nginx.nginx /usr/share/nginx/html/ -R #设置目录所有者
chmod 700 /usr/share/nginx/html/ -R #设置目录权限
2 关闭selinux
setenforce 0