Solve httpd. conf: DocumentRootmustbeadirectory -- Linux Enterprise Application-Linux server application information. The following is a detailed description. Today, I made a ticket on Fedora ???? Do you have a bribe? Are you sure you want to change httpd. conf? Face DocumentRoot and then re ??? Ttpd? After r? Born ???, Error Message ?? Br/>
DocumentRoot must be a directory
? Am I modifying DocumentRoot? Negi l born ???
Solution from google:
The reason is that SELinux is used and SELinux cannot be used.
Run system-config-securitylevel (or redhat-config-securitylevel) to disable SELinux setting for http or SELinux permission for the new path:
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
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service