Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

php disable_functions in PHP-FPM

Discussion in 'Security' started by sodapopinski, Oct 26, 2017.

Tags:
  1. sodapopinski

    sodapopinski Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    90
    Likes Received:
    2
    Trophy Points:
    308
    Everytime I use PHP-FPM and created an account. The system will automatically add disable_functions exec,passthru,shell_exec,system.
    I want to know the exact template file where I can edit that. 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.

    Can anybody help me?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,700
    Likes Received:
    1,791
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Check to ensure you follow the instructions from this post:

    Enabling PHP-FPM forces disable_functions

    What does the line in this file look like on your system? Make sure it includes the "php_admin_value_disable_functions" entry. EX:

    Code:
    php_admin_value_disable_functions : exec,passthru,system
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. sodapopinski

    sodapopinski Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    90
    Likes Received:
    2
    Trophy Points:
    308
    cPanelMichael likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice