Hello,
Could you let us know which specific value you have added to that file, and what actions you are taking in cPanel that reverts the change? Also, please post the output from the following command:
Code:
cat /usr/local/cpanel/version
I am commenting this line:
;php_admin_value[disable_functions] = exec,passthru,shell_exec,system
The action that reverts it is:
MultiPHP Manager > Pool Options > Save
cat /usr/local/cpanel/version
11.62.0.17
Note that the instructions for making changes to specific domain's pool are documented at:
PHP-FPM and EasyApache 4 - Documentation - cPanel Documentation
In particular, this is the file path to edit:
Code:
/var/cpanel/userdata/[user]/[domain].php-fpm.yaml
This document provides information about how to formulate the custom entries:
Configurations Values of PHP-FPM - Documentation - cPanel Documentation
Then, after making those changes to the YAML file, run the following command:
Code:
/scripts/php_fpm_config --rebuild --domain=domain
This script is documented at:
The php_fpm_config Script - Documentation - cPanel Documentation
Thank you.
I see. i get very lost when reading docs...i just wanted to enable exec, could you show me how the yaml would look like to change:
This: php_admin_value[disable_functions] = exec,passthru,shell_exec,system
to this: php_admin_value[disable_functions] = passthru,shell_exec,system
This is how it looks like:
---
_is_present: 1
pm_max_children: 5
pm_max_requests: 20
pm_process_idle_timeout: 10