chown -R daemon:daemon /xx/xx/xx
find -type d -exec chmod 750 {} \;
find -not -type d -exec chmod 640 {} \;
结果访问网站时报
Forbidden
You don't have permission to access / on this server.
运行
/usr/local/web/apache/bin/apachectl stop
报
-bash: /usr/local/web/apache/bin/apachectl: Permission denied
现在要怎么办啊?
2 个解决方案
#1
apache用户是daemon么?
SELinux关了没? setenforce 0
SELinux关了没? setenforce 0
#2
把权限设置成777试试
#1
apache用户是daemon么?
SELinux关了没? setenforce 0
SELinux关了没? setenforce 0
#2
把权限设置成777试试