Apache 13 权限在用户的主目录中被拒绝 [英] Apache 13 permission denied in user's home directory
问题描述
我朋友的网站运行良好,直到他将文档根目录从 /var/www/xxx
移动到 /home/user/xxx
.
My friend's website was working fine until he moved the document root from /var/www/xxx
to /home/user/xxx
.
当我们尝试通过网络浏览器访问站点时,Apache 给出了 13 条权限被拒绝的错误消息.
Apache gives 13 permission denied error messages when we try to access the site via a web browser.
该站点被配置为虚拟目录.所有的 Apache 配置都没有改变(目录变化除外).
The site is configured as a virtual directory. All the Apache configurations were unchanged (except for the directory change).
我们尝试chmod 777/home/user/xxx
,chown apache/home/user/xxx.但他们没有工作.
We tried to chmod 777 /home/user/xxx
, chown apache /home/user/xxx. But they didn't work.
是否在用户的主目录上设置了某种安全功能?服务器操作系统为 CentOS(Godaddy VPS).
Is there some kind of security feature set on the user's home directories? The server OS is CentOS (Godaddy VPS).
感谢任何帮助!
谢谢!
推荐答案
原来...我们还必须 chmod 755 父目录,用户,除了 xxx.
Turns out... we had to also chmod 755 the parent directory, user, in addition to xxx.
这篇关于Apache 13 权限在用户的主目录中被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!