Disabled functions (disable_functions)
Error: API failure: Can't use string ("exec,passthru,shell_exec,system,"...) as a HASH ref while "strict refs" in use at /usr/local/cpanel/Cpanel/PHPFPM.pm line 636.
I can't see any domains now, I try to remove system_pool_defaults.yaml and rebuild it, no luck.
This is my new system_pool_defaults.yaml
---
php_admin_flag_allow_url_fopen: 'on'
php_admin_flag_log_errors: 'on'
php_admin_value_disable_functions: exec
php_admin_value_doc_root: "\"[% documentroot %]/\""
php_admin_value_error_log: "[% homedir %]/logs/[% scrubbed_domain %].php.error.log"
php_admin_value_short_open_tag: 'on'
php_value_error_reporting: E_ALL & ~E_NOTICE
pm_max_children: 5
pm_max_requests: 20
pm_process_idle_timeout: 10
USE:
Centos : 7.6
CPanel : v78.0.11
-
HI @ChrisDeVe How were you making changes to the PHP-FPM configuration? My default system_pool_defaults.yaml looks as follows: [root@server ~]# cat /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml --- 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: "\"[% documentroot %]/\"" php_admin_value_error_log: "[% homedir %]/logs/[% scrubbed_domain %].php.error.log" php_admin_value_short_open_tag: 'on' php_value_error_reporting: E_ALL & ~E_NOTICE pm_max_children: 5 pm_max_requests: 20 pm_process_idle_timeout: 10
And the following article goes over how to manually modify these directives:0 -
Hi Lauren Thank you for your answer. I try your config, same issue, I try to remove all settings and let CPanel to regenerate "system_pool_defaults.yaml" after adding a single ( Disabled functions (disable_functions)) or multiple. The error will stay as well if I remove from ( Disabled functions (disable_functions)) all and leave empty Thank you 0 -
Hi, No solution till now ? Thank you 0 -
Hi @ChrisDeVe I apologize, this must have been overlooked. It sounds like there's an issue with that disable functions line. Can you show me the system_pool_defaults.yaml? 0 -
--- php_admin_flag_allow_url_fopen: 'on' php_admin_flag_log_errors: 'on' php_admin_value_disable_functions: "\"\"" php_admin_value_doc_root: "\"[% documentroot %]/\"" php_admin_value_error_log: "[% homedir %]/logs/[% scrubbed_domain %].php.error.log" php_admin_value_short_open_tag: 'on' php_value_error_reporting: E_ALL & ~E_NOTICE pm_max_children: 5 pm_max_requests: 20 pm_process_idle_timeout: 10 0 -
Why is this present in the disable functions line? "\"\""0 -
In empty will be like that So I add for example --- php_admin_flag_allow_url_fopen: 'on' php_admin_flag_log_errors: 'on' php_admin_value_disable_functions: exec php_admin_value_doc_root: "\"[% documentroot %]/\"" php_admin_value_error_log: "[% homedir %]/logs/[% scrubbed_domain %].php.error.log" php_admin_value_short_open_tag: 'on' php_value_error_reporting: E_ALL & ~E_NOTICE pm_max_children: 5 pm_max_requests: 20 pm_process_idle_timeout: 10 This will be default now. Error: API failure: Can't use string ("exec") as a HASH ref while "strict refs" in use at /usr/local/cpanel/Cpanel/PHPFPM.pm line 636. It's seem like faild on this line if ( $pool->{$key}{'present_ifdefault'} ) { $pool->{$key}{'value'} = $domain_pool_hr->{$key}{'default'} // $system_pool_defaults_hr->{$key}{'default'} // $php_fpm_pool_directives{$key}{'default'}; } 0 -
Hi @ChrisDeVe We've been trying to reproduce the error you're encountering but are unable to. Would it be possible for you to please open a ticket with us using the link in my signature? Once open please update this thread with the ticket ID so that we can add the resolution to this thread. Thanks! 0
Please sign in to leave a comment.
Comments
8 comments