I got this error message on audit.log :type=AVC msg=audit(1499174880.632:7148): avc:  denied  { execute } for  pid=49368 comm=httpd name=phantomjs dev=dm-11 ino=692068 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_sys_rw_content_t:s0 tclass=fileI think my website had the correct SELinux rule :ls -lZ /var/www/saga-rec.XX/axa-salesgame/vendors/bin/phantomjs-rwxrwx---. apache gg_recusfogm system_u:object_r:**httpd_sys_rw_content_t:s0** /var/www/saga-rec.XX/axa-salesgame/vendors/bin/phantomjsls -lZ /var/www/drwxr-xr-x. root   root         system_u:object_r:httpd_sys_script_exec_t:s0 cgi-bindrwxr-xr-x. root   root         system_u:object_r:**httpd_sys_content_t:s0** htmldrwxrws---. apache gg_recusfogm system_u:object_r:**httpd_sys_rw_content_t:s0** saga-api-rec.XXdrwxrws---. apache gg_recusfogm system_u:object_r:**httpd_sys_rw_content_t:s0** saga-rec.XX
SELinux Block Apache
apache httpd;selinux