Based on many online sources, in serving static files, Apache2 will create new thread on every different connection… results in resource hungry
But how about serving PHP through Apache2 (mod_php, MPM worker, etc)? Does apache will also open new thread like serving static files?
(AFAIK, in nginx php-fpm, we can set the max thread, but I dont know how many connection per thread)
I’m planning to use Apache2 in serving PHP, and hope it will be same as nginx PHP-FPM or even better in resource usage and performance.
Yes, Apache creates a separate thread (or process, with the pre-fork MPM) to serve each concurrent PHP request.
No related posts.