The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    623
    Likes Received:
    6
    Trophy Points:
    18
    Hello,

    how to enable phpinfo from within WHM please?

    or via CentOS linux command line preserving changes into the next apache rebuild?
     
  2. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,281
    Likes Received:
    37
    Trophy Points:
    48
    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
     
  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.
     
    #3 hostkingco, Apr 27, 2014
    Last edited: Apr 28, 2014
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    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.
     
Loading...

Share This Page