Apache DocumentRoot and SELinux

Yes, sometimes it’s very frustrating… SELinux can be a rela pain in the ass.. so happens that you’ve configured your Apache server, you are ready to go… and all you get is a Forbidden page. Well if you have SELinux enabled, all you have to do is:

chcon -R -t httpd_sys_content_t /<documentroot>/

Leave a Comment.