r/PHPhelp • • May 26 '20

PHP FPM vs Apache mod_php

Looking to support http2 and have read about switching to fpm to support it. I can handle all that, but I’m curious on a technical level.

Performance wise how does fpm compare to mod_php?

Is FPM the “future?” and is Apache planning on supporting http2 for their php module?

Am I an ancient for still using mod_php

15 Upvotes

6 comments sorted by

View all comments

1

u/nacholibrev Aug 25 '23

I was wondering the same thing and I couldn't find definitive answer which is better so I've conducted my own tests and performance benchmark.

It turns out Nginx with PHP-FPM is a a little bit faster, but a lot more stable under load.

I've wrote an article about this in my blog, you can check it out, I've added bar charts comparison.

https://yarnaudov.com/mod-php-vs-php-fpm-performance-benchmark.html