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

,

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x