daemon用户权限设置问题
想给apache运行时设置文件写权限,运行了下面几条命
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
现在要怎么办啊?
------解决方案--------------------apache用户是daemon么?
SELinux关了没? setenforce 0
------解决方案--------------------把权限设置成777试试