Disable phpinfo
Re: Disable phpinfo
tamkt wrote:Dear all,
I've installed Vestacp. I try disable function phpinfo, but it running
[root@web conf]# cat /etc/php.ini | grep phpinfo
disable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,show_source,phpinfo()
[root@web conf]# cat /etc/php.ini | grep expose
#expose_php = Off
; Decides whether PHP may expose the fact that it is installed on the server
; http://php.net/expose-php
expose_php = Off
[root@web conf]#
Open php.ini
CentOS
Code: Select all
nano /etc/php.ini
Code: Select all
nano /etc/php5/apache2/php.ini
Code: Select all
disable_functions =
Code: Select all
disable_functions = phpinfo
Re: Disable phpinfo
Full phpinfo output will be nice too.