解决httpd.conf: DocumentRoot must be a directory
时间:2006-04-08 来源:cnscn2008
今天在Fedora上做一個簡單不過的設定,更改httpd.conf裡面DocumentRoot 然後重新啟動httpd的時後發生了問題,Error Message為
DocumentRoot must be a directory
這是我修改DocumentRoot從未發生的問題
解法from google:
原因是使用了SELinux, 可以禁止使用SELinux
运行 system-config-securitylevel (或 redhat-config-securitylevel) 来禁止对http的SELinux 设置或给新路径设置SELinux权限:
chcon -R -h -t httpd_sys_content_t /home/www/html
This happens if you have a 2.6 linux kernel, or RHEL 4 likes.
More help at: http://fedora.redhat.com/docs/selinux-faq-fc3/index.html
相关阅读 更多 +