Is the pm.max_children configuration in /usr/local/hestia/data/templates/web/php-fpm/ global or for a single site?

Is the pm.max_children configuration in /usr/local/hestia/data/templates/web/php-fpm/ global or for a single site?

Single site

Can I remove the single site configuration and set the global one?

No so far I know not…

Under /etc/php/phpxx/ and I forget off the top of my head if there is another sub for to go into but head that way and you’ll find the php fpm. Ini or such (sorry forget the exact names off my head) and in it you’ll find an option for the maximum PHP workers server wide for that version of PHP at least. So if you set it to 32 that would be the maximum that all combined sites using that version of PHP can use at once

Is it the php-fpm.conf file inside the /etc/php/7.4/fpm folder?

pm = ondemand
pm.max_children = 512
pm.max_requests = 20480
pm.process_idle_timeout = 60s

Do I just need to write the above configuration to php-fpm.conf and do I need to remove that configuration from the single site configuration file?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.