Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

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

Your Answer


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.