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!

Warning: phpinfo() has been disabled for security reasons in

Discussion in 'Security' started by postcd, Apr 27, 2014.

  1. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    694
    Likes Received:
    15
    Trophy Points:
    68
    Hello,

    how to enable phpinfo from within WHM please?

    or via CentOS linux command line preserving changes into the next apache rebuild?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,344
    Likes Received:
    58
    Trophy Points:
    178
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    Again in /usr/local/lib/php.ini . Find the line with disable_functions. You probably have disable_function= with a long list of disabled functions, one of them likely being phpinfo. You'll need to remove phpinfo from the list of disabled functions in disabled_functions=

    mike
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. hostkingco

    hostkingco Member

    Joined:
    Apr 25, 2014
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    US
    cPanel Access Level:
    DataCenter Provider
    Alternatively within WHM go to PHP configuration Editor and Click Advanced and search for disabled functions
    You'll find the phpinfo() in the text box. Just remove it and click save at the bottom.
    This should also update the php.ini.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #3 hostkingco, Apr 27, 2014
    Last edited: Apr 28, 2014
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,704
    Likes Received:
    1,883
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, the previous posts are accurate. Look for "phpinfo" under disable_functions in /usr/local/lib/php.ini or with "Advanced Mode" via "WHM Home » Service Configuration » PHP Configuration Editor".

    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