http://www.howtoforge.com/using-php5-fpm-with-apache2-on-centos-6.3 I am having problem setting up PHP-FPM on Apache 2 I followed all the steps and i am just having problem loading the info.php file....when i install mod_php i was able to view the info.php file through the browser and it loads the Apache 2 handler as the Server API but i want PHP-FPM enabled which should be FPM/FastCGI as the Server API So basically i get 500 internal server error and when i checked my error log in /var/log/messages here is what i get: Code: Jul 5 00:20:49 cakephp kernel: type=1400 audit(1372998049.831:17): avc: denied { name_connect } for pid=5671 comm="httpd" dest=9000 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=system_u:object_r:port_t:s0 tclass=tcp_socket Jul 5 00:20:51 cakephp kernel: type=1400 audit(1372998051.552:18): avc: denied { name_connect } for pid=5672 comm="httpd" dest=9000 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=system_u:object_r:port_t:s0 tclass=tcp_socket What did i do wrong? What do i do to fix this? Thanks
Change the SELinux policy. # /usr/sbin/setsebool -P httpd_can_network_connect on # /usr/sbin/setsebool -P httpd_can_network_connect_db on For more details: SELinux allowing httpd to connect to php-fpm