Software >> Services >> HTTP Server >> Apache >> What can cause your Apache web application on Linux env to fail writing to the local server directory

 

Most likely SELINUX filesystem context not assigned for the directory to be writable

 

 

To check

ls -dZ /var/www/html

 

To set

semanage fcontext -at httpd_sys_rw_content_t "/var/www/html(/.*)?"

restorecon -R /var/www/html