Set permisions to apropriate files and directories to allow write by httpd (Apache/NGINX)
chcon -R -t httpd_sys_rw_content_t /var/www/html/
restorecon -Rv /var/www/html/
semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html(/.*)?"
Allow to connect to database (MySQL)
setsebool httpd_can_network_connect_db 1
setsebool -P httpd_can_network_connect_db 1