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:
- How Do I Block An IP Address On Linux Server ?
- Linux Shutdown Command
- How To Disable Ctrl + Alt + Del On Ubuntu 11
- How To Disable Ctrl + Alt + Del On Centos / RedHat
- How To Save/Restore Iptables Rules
- How To Copy Hidden Files On Linux
- How To Install Subversion (SVN) Extension Working With PHP 5.3
- How To Setup Iptables Firewall For A Web Server On CentOS
- How Do I Fix “Host is blocked because of many connection error” In MySQL
- How To Start / Shutdown / Reboot Guest Operating Systems With virsh Command On KVM
{ 1 comment… read it below or add one }
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