Topics

Blogger Tips and TricksLatest Tips And TricksBlogger Tricks

Monday, May 9, 2011

How to Secure Php script in Linux Server

Below is the very simple method to secure your php script in Linux server , Read Below and follow step by step This simple but great method will secure your php script used for your website
PHP is the most popular scripting language for apache and mysql. You will need to disable system level functions in the php configuration file.
nano /usr/local/lib/php.ini
Look for the lines and make sure you have the lines as below..
disable_functions = exec,system,shell_exec,passthru
register_globals = Off
expose_php = Off
magic_quotes_gpc = On
It is best to keep magic_quotes to on as otherwise you forms using POST may be used for SQL injection attacks.

world class web hosting guide web hosting articles web hosting news web hosting reviews webhostingmatters.com

1 comment:

  1. Linux is one of the best hosting platform and here you have shared such a wonderful and informative post.Website Hosting India

    ReplyDelete