Apache 2.4: mod_php vs php-fpm performance

apache-2.4benchmarkmod-phpphp-fpmphp5

There are plenty of old benchmarks on Apache mod_php vs nginx with php-fpm

However, with version 2.4, Apache can use php-fpm. Are there any sensible benchmarks comparing mod_php with php-fpm (both on Apache 2.4.x)?

Best Answer

I'm working for a hosting/cloud company and we routinely use Apache 2.2 + mod_fastcgi + php-fpm (socket listen).

It uses a little more memory and CPU, but it's much more faster than mod_cgi/mod_php/mod_suphp.

If you can choose, go with mod_proxy_fcgi + php-fpm (2.4) or mod_fastcgi + php-fpm