Red Hat Bugzilla – Bug 133955
Apache UserDir does not work if SELinux is set to Enforcing
Last modified: 2007-11-30 17:10:50 EST
Description of problem:
Apache's UserDir does not work if SELinux set to Enforcing.
Configure Apache UserDir. Switch SELinux Enforcing/Permissive. Works
when SELinux is set to Permissive. Does not work with Enforcing.
Apache does not serve from www.mysite.com/~user and "(13)permission
denied. access to /~user denied." appears in /var/log/httpd/error_log
Apache serves from ~user/public_html
chcon -R -t httpd_user_content_t ~USERNAME/public_html
This works for me.
* Verify settings in httpd.conf
* Verify file contexts (comment #1)
* Verify directory perms for ~user and ~user/public_html