3 ms·
> without PHP, you don't have to use the old fashioned process model. Immediately followed by: > Apache can work with PHP-FPM just like Nginx using the new ev
by timdev2 13y ago
> without PHP, you don't have to use the old fashioned process model.
Immediately followed by:
> Apache can work with PHP-FPM just like Nginx using the new evented worker mpm
seems contradictory. Can you clarify this bit?
- gnaritas 13y agoThe Apache evented worker is very new, just out in 2.4, so it's still standard practice to use the process model. The new way should bring it inline with Nginx but it's too new to say if it's as stable as Nginx; at least for me to say it.
- timdev2 13y agoThere are now three major MPMs: Prefork - if you want to use mod_php, you're stuck with this. I think this is what you're referring to as "the process model" Worker - Uses threads to handle connections. A big step up from prefork, but not as awesomesauce as nginx. Evented - The new MPM which use epoll It's been possible to run PHP(-fpm) under "worker" (via FastCGI) for years, and it performs adequately. I never benchmarked, but I was using this setup back when nginx was still too bleeding-edge for my tastes, and it certainly beat the pants of prefork/mod_php