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

postcd

Well-Known Member
Oct 22, 2010
721
20
68
Hello,

how to enable phpinfo from within WHM please?

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

mtindor

Well-Known Member
Sep 14, 2004
1,430
91
178
inside a catfish
cPanel Access Level
Root Administrator
Hello,

how to enable phpinfo from within WHM please?

or via CentOS linux command line preserving changes into the next apache rebuild?
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,236
463
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.