Change php-fpm setting from ondemand to dynamic

devinh

Member
Sep 22, 2018
12
0
1
India
cPanel Access Level
Root Administrator
I would like to change some php-fpm master process config
cpanel version: v78.0.23
I created new file system.yaml in /var/cpanel/ApachePHPFPM and placed following entries

Code:
---
pm: dynamic
pm_start_servers = 4
pm_min_spare_servers = 4
pm_max_spare_servers = 8
and recompiled using /scripts/php_fpm_config --rebuild
but its failed, can any one pls explain valid method to change master values in fpm
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,226
463
Hello @devinh,

The "pm" key is a PHP-FPM Pool directive. Pool directives are configured in the following locations:

Defaults: /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml
Individual Domains: /var/cpanel/userdata/$username/$domain.tld.php-fpm.yaml

You can read more about how to modify PHP-FPM configuration files on the following post:

SOLVED - How-To Modify PHP-FPM Configuration Directives in EasyApache 4

Let me know if this information helps.

Thank you.