Page 1 of 1

Re: Disable phpinfo

Posted: Fri Nov 28, 2014 10:07 am
by joem
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
Ubuntu

Code: Select all

nano /etc/php5/apache2/php.ini
Find

Code: Select all

disable_functions =
Replace with

Code: Select all

disable_functions = phpinfo 
Restart everything

Re: Disable phpinfo

Posted: Thu Dec 11, 2014 7:50 am
by joem
tamkt wrote:Dear Joem,

I've changed /etc/php.ini but

Image

Can you send me a screen shot of the whole phpinfo page please?

Re: Disable phpinfo

Posted: Wed Mar 04, 2015 7:43 pm
by skurudo
Full phpinfo output will be nice too.