- 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

