What is the role of this variables in php.ini file (expose_php – allow_url_fopen – register_globals) ?

by Linux Killer on January 29, 2013

There are a lot of people do not know what these variables and how they can be used , this Variables exist in php.ini file , the php.ini file is contains settings PHP on server , and for each variable in the php.ini file have a special role and can be disabled and activated with ON and Off

Disable = Off

Activate = On

So now I will explain to you the benefit of each function and put you a choice in the activation and disable

expose_php

Is a a property from which to see PHP version on the server so disabling means not making available to the hacker to know the version of PHP

allow_url_fopen

When you disable this function no one will be able to contain another link in a specific page , but some scripts like AM4SS – Vbulletin need this function for the arrival of notifications within the Admin Control Panel

register_globals

When you Desable this function become possible to control the content of php files difficult and does not allow the Edited only by the owner
So now we come to the disabled and activation of these properties

Enter in the shell and modify the php.ini file with the following command

nano /usr/local/lib/php.ini

By pressing Ctrl + W will open new box writes what you want to search for inside file

Looking for the variable you want edited for example

allow_url_fopen

You’ll find as follows :

allow_url_fopen = On

Mark value after the mark (=) On for activate Off  for disabled , Apply it with the rest of the properties , After completion of the amendment to click on the keys CTRL + X + Y then Enter button

You will see a new command line in the main interface in shell
Observation : you must restart Apache after any amendment to this file for edited is defined in the php and Apache
To restart apache :

service httpd restart

Or you can restart apache using server Control Panel WHM In a private box to restart services From there you can restart any service you want to.

Related Posts:

{ 1 comment… read it below or add one }

kensington metropark in milford October 28, 2013 at 3:02 pm

Hey there just wanted to give you a quick
heads up. The text in your article seem to be running off the
screen in Firefox. I’m not sure if this is a format issue or something to do with web browser compatibility but I figured I’d
post to let you know. The style and design look great
though! Hope you get the issue solved soon. Thanks

Reply

Leave a Comment

Previous post:

Next post: