If you already have an account with us, please use the login panel below to access your account.


Selinux, Apache, and home folder content

Rate this Entry
So I had been trying to setup virtual Apache servers with content server from the users home folders. For example: would be server from /home/testuser1/public_html

Seems to be a pretty common procedure, but in CentOS I received permissions errors regardless of what I tried. I eventually found selinux to be the cause. When I temporarily ran selinux in permissive mode everything worked fine, but I did not want to run in permissive mode.

The eventual fix was the following:

setsebool -P httpd_enable_homedirs 1


chcon -R -t httpd_sys_content_t /home/testuser1/public_html

I read countless threads on this with many folks facing the same problem I was but with no answers. Hopefully this can provide a little help for those folks.