Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Disable phpinfo

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: Disable phpinfo
  • Quote

Post by joem » Fri Nov 28, 2014 10:07 am

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
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: Disable phpinfo
  • Quote

Post by joem » Thu Dec 11, 2014 7:50 am

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?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Disable phpinfo
  • Quote

Post by skurudo » Wed Mar 04, 2015 7:43 pm

Full phpinfo output will be nice too.
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password