Stop cPanel from overwriting php-fpm settings file.
I need to modify a line on my site php-fpm config, but if i make a change on cpanel it reverts my changes. How can i keep my changes after saving the file using cpanel interface? The file in question is:
/opt/cpanel/ea-php56/root/etc/php-fpm.d/domain.com.conf
-
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: cat /usr/local/cpanel/version
Note that the instructions for making changes to specific domain's pool are documented at: Then, after making those changes to the YAML file, run the following command:/scripts/php_fpm_config --rebuild --domain=domain
This script is documented at:0 -
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:
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.17Note that the instructions for making changes to specific domain's pool are documented at: Then, after making those changes to the YAML file, run the following command:
/scripts/php_fpm_config --rebuild --domain=domain
This script is documented at:0 -
Hello, Try adding this line, and ensure to follow the steps referenced in my previous response: php_admin_value_disable_functions : passthru,shell_exec,system
Thanks!0 -
Nice! I was able to set other fpm settings that were getting deleted as well! Basically i replaced: . with _ and = with : This settings i made them up off of plain trial and error! do they look decent too you? (it's a Quad core with 16 Gb ram) pm = dynamic pm.max_children = 9 pm.start_servers = 1 pm.min_spare_servers = 1 pm.max_spare_servers = 4 pm.max_requests = 250 PS: this is solved btw. 0 -
I'm happy to see the issue is now addressed. Regarding the specific values, it generally depends on the traffic your server receives. Thanks! 0
Please sign in to leave a comment.
Comments
5 comments