Skip to main content

php disable_functions in PHP-FPM

Comments

3 comments

  • cPanelMichael
    Hello, Check to ensure you follow the instructions from this post: Enabling PHP-FPM forces disable_functions
    Because if I add disable_functions line into /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml, everytime cpanel create a new acount it will add SEPARATE line into each domain config instead of replace the default one which cause service unavailable error.

    What does the line in this file look like on your system? Make sure it includes the "php_admin_value_disable_functions" entry. EX:
    php_admin_value_disable_functions : exec,passthru,system
    Thank you.
    0
  • sodapopinski
    Got it. Thank you very much @cPanelMichael .
    0
  • jazee
    This really drove me batty too trying to figure out why a script wasn't working when upgrading to PHP 7 recently. Is there some reason that controlling this couldn't be done through settings somewhere within WHM/Cpanel instead of using the clunky manual command line fix?
    0

Please sign in to leave a comment.