nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Howto: PHP Block phpinfo() function

This is a discussion on Howto: PHP Block phpinfo() function within the Web servers forums, part of the Mastering Servers category; Hi, Can anyone help me to block function phpinfo?...

Register free or login to your existing account and remove all advertisements.


Go Back   nixCraft Linux Forum > Mastering Servers > Web servers

Linux answers from nixCraft.


Web servers Discussion on Apache, Nginx and Lighttpd HTTP/web server and configuration issues.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-24-2009, 10:57 AM
Senior Member
User
 
Join Date: Jul 2006
Posts: 138
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 4
asim.mcp is on a distinguished road
Default Howto: PHP Block phpinfo() function

Hi,


Can anyone help me to block function phpinfo?
Reply With Quote
The Following User Says Thank You to asim.mcp For This Useful Post:
jaysunn (10-24-2009)
  #2 (permalink)  
Old 10-24-2009, 07:55 PM
jaysunn's Avatar
Powered By Linux
User
 
Join Date: Apr 2009
Location: 41.332032,-73.089775
OS: RHEL - OSX
Posts: 525
Thanks: 54
Thanked 66 Times in 59 Posts
Rep Power: 8
jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold
Default

Hey asim.mcp,

Can you explain a bit more in regards to block phpinfo function? This may be completely wrong, however you can just rename the file.

Jaysunn
__________________
Give a man a fish, feed him for today.
Teach a man to fish, he will feed himself from now on.
Reply With Quote
  #3 (permalink)  
Old 10-24-2009, 08:02 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Posts: 2,450
Thanks: 11
Thanked 189 Times in 139 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Open php.ini (usually located in /etc/) and set
Code:
disable_functions=phpinfo
Restart the webserver once done.

See
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
The Following User Says Thank You to nixcraft For This Useful Post:
jaysunn (10-24-2009)
  #4 (permalink)  
Old 10-24-2009, 08:05 PM
jaysunn's Avatar
Powered By Linux
User
 
Join Date: Apr 2009
Location: 41.332032,-73.089775
OS: RHEL - OSX
Posts: 525
Thanks: 54
Thanked 66 Times in 59 Posts
Rep Power: 8
jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold
Default

O I see,

Neat. Thanks, this is helpful.


Jaysunn
__________________
Give a man a fish, feed him for today.
Teach a man to fish, he will feed himself from now on.
Reply With Quote
  #5 (permalink)  
Old 10-26-2009, 12:05 AM
Senior Member
User
 
Join Date: Jul 2006
Posts: 138
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 4
asim.mcp is on a distinguished road
Default

Thanks Dear
Reply With Quote
Reply

Tags
/etc/php.ini , disable phpinfo() , php block functions , php disable phpinfo


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
[Solved] Help with execvp function in C program ! demuytree Coding in General 3 06-17-2009 02:16 PM
howto block mail service for a user ephdia Databases servers 0 07-17-2008 11:26 AM
fattach function which package sathiya Linux software 2 06-02-2008 06:41 PM
Adding storage function to a mail server satimis Databases servers 0 01-04-2008 02:15 PM
call function in bash mala_un Shell scripting 9 08-18-2006 02:36 AM


All times are GMT +5.5. The time now is 02:56 PM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38