Enabling PHP-FPM forces disable_functions

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
  • Like
Reactions: i-Strategi

Odirlon Herartt

Registered
Sep 14, 2017
1
0
1
Brazil
cPanel Access Level
Root Administrator
Hello,

Please revert any modifications you have made and let us know if the steps outlined below are helpful:

1. Create the /var/cpanel/ApachePHPFPM directory:

Code:
mkdir /var/cpanel/ApachePHPFPM
2. Create the /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml file:

Code:
touch /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml
3. Edit /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml using your preferred text editor (e.g. vi, nano) so that it looks exactly like this:

Code:
php_admin_value_disable_functions : passthru,system
In this example, "passthru,system" are left as disabled functions. No other lines exist before or after this entry in this file.

4. Regenerate the PHP-FPM configuration files via:

Code:
/scripts/php_fpm_config --rebuild
Thank you.

Great! Working!!! Thanks.