SELinux (Security-Enhanced Linux)

After a bit of trouble-shooting, I discovered that, while Apache may have permission to read/write according to the file permissions above, an additional set of commands need to be run to have Linux verify that Apache really does have those permissions:

sudo chcon -t httpd_sys_rw_content_t /var/www/marketing -R

if the above doesn’t work, you may need to specify certain files/dirs. Health Check plugin can come in handy for identifying those.

Sample for a file: sudo chcon -t httpd_sys_rw_content_t /var/www/marketing/wp-config.php

Leave a Reply

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