Articles on: Control Panel Management

Tweak PHP-FPM cPanel

To enhance performance and achieve better resource management on your server, this guide explains how to modify PHP-FPM settings through SSH in a cPanel environment. It covers adjusting parameters such as the process manager mode, process limits, request handling, and more followed by rebuilding the PHP-FPM configuration to ensure all changes are applied correctly.


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


You have successfully tweak PHP-FPM cPanel.


If you face any issues or need assistance, don’t hesitate to reach out — our support team is always ready to help!


🔧 Need help? Submit a Support Ticket

💬 Chat with us on Live Chat via our website

Updated on: 24/11/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!