Security and Hardening Tips for PHP

Disable sensetive functions in PHP Edit the php.ini file : sudo vi /etc/php5/apache2/php.ini Add or edit the following lines an save : disable_functions = exec,system,shell_exec,passthru,etc ...... register_globals = Off expose_php = Off display_errors = Off...

Security and Hardening Tips for MySQL

Disable or restrict remote access Consider whether MySQL will be accessed from the network or only from its own server. If remote access is used, ensure that only defined hosts can access the server. This is typically done through TCP wrappers, iptables, or any other...