Articles on: cPanel

Tweak PHP-FPM cPanel

Open and locate your site's PHP-FPM YAML file in the SSH console. Find the file location as below and open it up:
nano /var/cpanel/userdata/username/domain.tld.php-fpm.yaml

Then, you can try this command :

_is_present: 1
pm: static
pm_start_servers: 20
pm_max_children: 20
pm_max_requests: 100
php_admin_value_disable_functions : passthru,system
php_flag[display_errors]: off
php_flag[display_startup_errors]: off

Finally, restart the PHP-FPM processes:

/scripts/php_fpm_config --rebuild

Updated on: 20/06/2022

Was this article helpful?

Share your feedback


Thank you!