go to bug id or search bugs for
I would like to be able do enable/disable modules per pool and would also like to be able to restart single pool when I change its config.
Add a Patch
Add a Pull Request
For enabeling extensions you can use the php_admin_value setting for each pool:
php_admin_value[extension] = extension.so
There is no way to restart a single pool. If you change the conf file, send a USR2
signal to the FPM process. All pool will be restarted. If you really don't want to
restart other pools, you can safely send a QUIT signal the each pool processes.
btw, this bugs makes me think about adding a gracefull restart of FPM.
Would be great also the possibility to add fpm pools on-the-fly without having to restart fpm (causing a downtime to all pools)
This could realy be usefull.
a graceful restart would be really nice .... AFTER ondemand feature :-D
I am playing with fpm and chroot using unix sockets for shared web hosting. There
is also a problem with recreating a missing socket file which requires a complete
restart of fpm.
Any news on this request here?
Currently, the only way to do this is to run multiple PHP-FPM masters, all with a single pool. That way, you have full control over which extensions are loaded and how they're configured and you can restart a single pool without impacting others.
This technique, as well as example configs, is further explained in this blogpost: http://mattiasgeniar.be/2014/04/09/a-better-way-to-run-php-fpm/
Thanks mattiast, its a very good solution.. i'll dive into next days