在centos 6.9安装wordpress浏览器访问先出现403错误,然后提示access denied
nginx错误打印FastCGI sent in stderr: "Unable to open primary script
1.
vi /etc/php-fpm.d/ #编辑 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