Skip to main content

Stop cPanel from overwriting php-fpm settings file.

Comments

5 comments

  • cPanelMichael
    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
  • SpaceCowboy
    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.17
    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
  • cPanelMichael
    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
  • SpaceCowboy
    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
  • cPanelMichael
    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.