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!

Why disable_functions master value > local value

Discussion in 'General Discussion' started by zeki, Jul 11, 2016.

  1. zeki

    zeki Member

    Joined:
    Jun 19, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    51
    Hi cpanelers,

    I'm using PHP7 and I set the local php.ini to disable_functions = phpinfo and the master value disable_functions is empty.
    To my surprise the local php.ini loads phpinfo() and in the output of phpinfo() it shows the phpinfo under disable_functions in the local value and yet it still loads. Anybody know why this is still loading?

    TIA
     
    #1 zeki, Jul 11, 2016
    Last edited: Jul 11, 2016
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,410
    Likes Received:
    1,956
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    On systems that run EasyApache 4, multiple php.ini and local.ini files manage your system's PHP. Each version of PHP on your systems uses its own php.ini and local.ini file. You must make changes to each file separately. Documentation on changing the configuration through Web Host Manager is available at:


    MultiPHP INI Editor for WHM - Documentation - cPanel Documentation

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 cPanelMichael, Jul 11, 2016
    Last edited by a moderator: Jul 12, 2016
  3. zeki

    zeki Member

    Joined:
    Jun 19, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    51
    BTW the link you gave me has page not found.

    The problem is that disable_functions is modified in the php.ini and has phpinfo function disabled yet when I run phpinfo() I search disable_functions and phpinfo is listed in the local value. So why would a function that is listed in local value of disable_functions still run phpinfo?
     

    Attached Files:

  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,570
    Likes Received:
    439
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I've updated the link for you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,410
    Likes Received:
    1,956
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Would you mind opening a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. zeki

    zeki Member

    Joined:
    Jun 19, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    51
    ticket
    7598329 created
     
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,410
    Likes Received:
    1,956
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    To update, the entry was added to /opt/cpanel/ea-php70/root/etc/php.d/local.ini and it now works as expected.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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