Page 1 of 1

Apache - Worker MPM + PHP-FPM

Posted: Mon Jul 20, 2015 9:14 pm
by RevengeFNF
Hello,

For sites with many concurrent requests, i ready everywhere that its better to use worker or event MPM with PHP-FPM. Prefork with mod_php is compatible with everything(i think thats why Vesta uses it), but does not use threads, and that way its slower for concurrent requests.

To enable it, i just need to go to /etc/sysconfig/httpd and uncomment the worker part and install php-fpm? Do i need to have special care because of some config that Vesta have done?

Ps: I will try this first on a dev environment.

Regards

Re: Apache - Worker MPM + PHP-FPM

Posted: Thu Jul 23, 2015 11:01 am
by skurudo
RevengeFNF wrote: To enable it, i just need to go to /etc/sysconfig/httpd and uncomment the worker part and install php-fpm? Do i need to have special care because of some config that Vesta have done?
VestaCP will support PHP-FPM soon enough. If this wait, then be better to wait a release.
But if you don't, then you should make nginx configuration files modification to php-fpm "module".

Re: Apache - Worker MPM + PHP-FPM

Posted: Sun Feb 16, 2020 5:45 pm
by maman
It's been 5years. Still php-fpm is not supported in vestacp?

Even in apache official docs they do not recommend it anymore.

https://cwiki.apache.org/confluence/display/HTTPD/PHP 1

Please remove support for mpm prefork in vestacp. As its really old school. I never see other control panel uses prefork anymore. Except dying one.