Results 1 to 2 of 2

Thread: Hardening PHP for Security

  1. #1
    Moderator
    Join Date
    Jan 2012
    Posts
    141
    Thanks: 0
    Thanked 0 Times in 0 Posts

    Hardening PHP for Security

    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..
    PHP Code:
    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.
    [Only Registered and Activated Users Can See Links. Click Here To Register...]

  2. #2
    Junior Member
    Join Date
    Nov 2019
    Posts
    1
    Thanks: 0
    Thanked 0 Times in 0 Posts
    Thanks and well noted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •