13阿帕奇许可,用户的主目录否认 [英] Apache 13 permission denied in user's home directory
问题描述
我的朋友的网站工作正常,直到他搬离 /无功/网络/ XXX
文档根目录为 /家庭/用户/ XXX
。
My friend's website was working fine until he moved the document root from /var/www/xxx
to /home/user/xxx
.
阿帕奇给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阿帕奇/家庭/用户/ 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).
任何帮助AP preciated!
Any help is appreciated!
谢谢!
推荐答案
原来...我们不得不也行chmod 755父目录,用户,除了XXX。
Turns out... we had to also chmod 755 the parent directory, user, in addition to xxx.
这篇关于13阿帕奇许可,用户的主目录否认的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!