Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it possible to run PHP-FPM with Apache or is that a nginx only option?

Looking for ways to use apache and keep .htaccess but gain better php performance like able to take more reqs per sec.

EDIT: I also run nginx as a front-end reverse proxy for static content.

share|improve this question
add comment

2 Answers 2

Yes, It is possible. According to me Nginx is more flexible, light loaded server than Apache. I am personally using Nginx to run php-fpm.

share|improve this answer
    
I run shared hosting so I can't drop Apache. I've setup a social network on varnish/nginx+php-fpm and they run good. –  Tiffany Walker Mar 4 '13 at 17:30
add comment

PHP-FPM is PHP FastCGI process manager. Fastcgi is protocol for communication between application server and webserver. FastCGI is supported for all major web servers - apache2, lighttpd, nginx, cherokee, IIS.

For Apache 2.4, you can use mod_proxy_fcgi. Apache 2.4 is recommended because of performance improvements and new super-fast mpm_event engine. For older Apache versions you have to rely on third party mod_proxy_fcgi, because bundled mod_fcgid does not work with externally spawned processes like phpf-fpm.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.