今天在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