SELinux prevented httpd(usr/sbin/httpd) write access to /var/www/html/bookings/templates_c SELinux prevented httpd(usr/sbin/httpd) write access to /var/www/html/bookings/templates_c apache apache

SELinux prevented httpd(usr/sbin/httpd) write access to /var/www/html/bookings/templates_c


You can allow it by using setsebool -P httpd_unified=1

Normal SELinux settings for http to work with PHP more or less properly are:

setsebool -P httpd_enable_cgi onsetsebool -P httpd_unified onsetsebool -P httpd_builtin_scripting on

Otherwise you can use

getsebool -a | grep httpd

To get a list of httpd-related EeLinux options and tweak to your personal taste.