You can improve the PHP-FPM pool performance by tweaking YAML file settings. Find and open your website’s PHP-FPM YAML file with PuTTY in SSH or WinSCP.
(username is your cPanel username / yourdomain to be replaced with actual name)
Remove any existing YAML file contents and replace with:
php_admin_value_disable_functions : passthru,system
then rebuild the master PHP-FPM pool config files and restart the PHP-FPM processes:
– You can also increase pm_max_requests, if your site has high volumes of small requests. Or, decrease pm_max_requests if you have large memory-hungry requests.
– Server’s memory usage will be relatively higher than previous so you can lower the pm_start_servers and pm_max_children values when adjusting static PHP children.