How to find the pm (Process Manager) setting in my PHP FPM?
Hi,
In WHM, there is no such a setting in MultiPHP Manager.
Then I try to use the following command:
less /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml
But the result also do not have such a setting:
php_admin_flag_allow_url_fopen: 'on'
php_admin_flag_log_errors: 'on'
php_admin_value_disable_functions: exec,passthru,shell_exec,system
php_admin_value_doc_root:
present_ifdefault: 0
php_admin_value_error_log:
present_ifdefault: 0
php_admin_value_short_open_tag: 'on'
php_value_doc_root:
name: php_value[doc_root]
present_ifdefault: 1
value: "\"\""
php_value_error_log:
name: php_value[error_log]
present_ifdefault: 1
value: "[% homedir %]/logs/[% scrubbed_domain %].php.error.log"
php_value_error_reporting: E_ALL & ~E_NOTICE
pm_max_children: 800
pm_max_requests: 500
pm_process_idle_timeout: 10
-
The default value of the 'pm' setting is 'on-demand.' You can modify it globally or for an individual domain(s):
0 -
Thank you. After changing pm to dynamic, I get the following warning in the log:
[25-Feb-2025 05:30:24] WARNING: [pool xxx_com] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 0 idle, and 8 total children
So, how to change pm.start_servers and pm.min/max_spare_servers?
0 -
Please note that is just a warning - if things are working well, you may not actually need to change anything.
0
Please sign in to leave a comment.
Comments
3 comments