Apache warning: DocumentRoot doesnot exist..

Bill Tangren bjt at aa.usno.navy.mil
Wed Sep 6 13:55:41 UTC 2006


Nirav Modiya wrote:
> hello friends,
> Thanks for ur all pointers..
> I have checked with apache user..it means i have set apache as
> user/owner of my public_html directory and i have also checked with
> nobody user..and getting same problem..
> 
> I think stephen was right. it may be a problem of selinux..because it
> showing selinux error in /var/log/messages..so is there any way to
> stop or disable selinux..
> 
> thanks to  u all...
> Nirav
> 

Rather than turn off selinux, why don't you set the documentroot directories to 
this:

system_u:object_r:httpd_sys_content_t

using the chcon command? This will probably fix your problem. Make sure to use 
the -R option, to do all the files and directories recursively.




More information about the redhat-list mailing list