I really appreciate this post. I have been looking all over for this! Thank goodness I found it on Bing. You’ve made my day! Thanks again top air rifle scope 2018
I think www.conf and virtual domain.conf parameters need to be changed manually.
I only changed children, min/max servers and requests on www.conf under /etc/php-fpm.d
and no changes on the domains 12345678.conf files. I have not found any clue anywhere if domain.conf files need any change as
their default is 9999 children and 1,1,5
Somehow kpendic’s solution doesn’t seem to work for me, the pools fpm configurations don’t get overridden.
I devised an alternative solution:
Create your default configuration file, i.e.: /etc/php/7.0/fpm/pool.d/default.conf
Put your desired default fpm configuration in the default file, i.e.:
pm = ondemand
pm.max_children = 5
pm.process_idle_timeout = 10s;
Have Virtualmin include your default file in new pool configuration files, adding the include in "Virtualmin > System Settings > Server Templates > Default Settings > PHP Options > Additional FPM pool options", i.e. "include = /etc/php/7.0/fpm/pool.d/default.conf"
For already existing domains, you can have Virtualmin regenerate the configuration file by changing the “PHP script execution mode” from FPM to anything else and then back to FPM.
If you have to do it for multiple domains, I advise you to temporarily switch to the old webmin theme if you want to go 10x faster.
Hi, I really like your idea and it’s working. Thanks. I am also interested in regarding switching to old webmin theme would help. Would you mind elaborate on that?