Pages

Wednesday, February 20, 2008

apache, DocumentRoot must be a directory

You got "DocumentRoot must be a directory" error even it is really a
directory because of SELinux extensions. Run
system-config-securitylevel (or redhat-config-securitylevel) to
disable SELinux for httpd or give SELinux permissions to that
directory:
chcon -R -h -t httpd_sys_content_t /path/to/directory

More help at: http://fedora.redhat.com/docs/selinux-faq-fc3/index.html

reference:
http://www.issociate.de/board/post/186682/DocumentRoot_must_be_a_directory.html

No comments: