HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Using PHP5-FPM With Apache2 On CentOS 6.3 (http://www.howtoforge.com/forums/showthread.php?t=62444)

nokia3310 5th July 2013 07:28

Using PHP5-FPM With Apache2 On CentOS 6.3
 
http://www.howtoforge.com/using-php5...-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

nokia3310 6th July 2013 14:46

someone please help

tecnoplaga 13th July 2013 07:37

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

nokia3310 14th July 2013 17:03

Quote:

Originally Posted by tecnoplaga (Post 299750)
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

It worked...thanks alot

How did you find out about this solution?


All times are GMT +2. The time now is 17:01.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.