How to disable the phpinfo server wide?

First steps in cPanel, creating emails, databases, etc

How to disable the phpinfo server wide?

Postby Mark » Sat Dec 19, 2009 7:04 am

First find out the php.ini path using command

Code: Select all
php -i | grep php.ini


Edit the php.ini file with your favorite editor

Code: Select all
#vi php.ini


Code: Select all
disable_functions = phpinfo


:wq!

or

Locate the line containing “expose_php On” and set it to Off in php.ini

Code: Select all
expose_php = Off
Mark
 
Posts: 124
Joined: Fri Dec 11, 2009 2:18 pm

Return to Basic cPanel usage tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

cron