Re: [users@httpd] Warning: Documentroot doesn't exist

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



With the Fedora Core 3 httpd package?  This is because the SELinux
policy will deny httpd access to any unlabelled files by default. See:

Joe, Do you know if apache puts anything useful in the error log in
this case?  If not, it should.  This is becoming a hard-to-diagnose
FAQ.


The link that Joe put in his email has the answers. However, here's a tail of my /var/log/messages (why I didn't look there first I don't know DOH!)

It makes total sense now that I know about SELinux and what it does to the file system. I have yet to test it out but I doubt that I'll run into any errors.

Mar 2 10:59:37 webdev kernel: audit(1109782777.321:0): avc: denied { search } for pid=6503 exe=/usr/sbin/httpd name=webdev dev=dm-0 ino=13680661 scontext=root:system_r:httpd_t tcontext=root:object_r:user_home_t tclass=dir Mar 2 10:59:37 webdev httpd: Warning: DocumentRoot [/home/httpd/webdev/html] does not exist Mar 2 10:59:37 webdev kernel: audit(1109782777.627:0): avc: denied { search } for pid=6504 exe=/usr/sbin/httpd name=webdev dev=dm-0 ino=13680661 scontext=root:system_r:httpd_t tcontext=root:object_r:user_home_t tclass=dir
Mar  2 10:59:37 webdev httpd: httpd startup succeeded
Mar 2 10:59:39 webdev kernel: audit(1109782779.908:0): avc: denied { search } for pid=6507 exe=/usr/sbin/httpd name=webdev dev=dm-0 ino=13680661 scontext=root:system_r:httpd_t tcontext=root:object_r:user_home_t tclass=dir Mar 2 10:59:39 webdev kernel: audit(1109782779.908:0): avc: denied { getattr } for pid=6507 exe=/usr/sbin/httpd path=/home/httpd/webdev dev=dm-0 ino=13680661 scontext=root:system_r:httpd_t tcontext=root:object_r:user_home_t tclass=dir


Thanks for everyone's help!
jay


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux