- Create the file /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml
- Add you custom settings :
php_admin_value_disable_functions : show_source,system,exec,shell_exec,passthru,popen,proc_open
php_admin_value_error_reporting : E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT
pm_max_children : 3
pm_max_requests : 10
pm_min_spare_servers : 5
pm_max_spare_servers : 15
pm_process_idle_timeout : 10 - Remove existing config files using following command
rm -rf /var/cpanel/userdata/*/*.php-fpm.yaml
- Rebuild New config files using following command
/scripts/php_fpm_config --rebuild
-
You may need to enable the php-fpm for the sites from whm again.