BLOG.TIGABEATS.COM

A shrine where thoughts, ideas and random stuff is preserved

Apache 403 and SELinux

Change content
chcon -t httpd_sys_content_t /var/www/html/mywebsite/*

Following wont work:
restorecon -R -v /var/www/html/mywebsite

Set Selinux mode to be (permissive):

echo 0 >/selinux/enforce

Readon for more info in SeLinux and Apache on Linux: http://wiki.centos.org/HowTos/SELinux

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy this password:

* Type or paste password here:

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>