Security Enhancement for Apache, PHP and MySQL
1, Prevent DOS Attacks
download and install mod_evasive: http://www.zdziarski.com/projects/mod_evasive/
2, Limit MySQL Network Access
edit /etc/my.cnf to add the following line:
skip-networkingbind-address = 127.0.0.1
3, change MySQL root user’s password:
mysql mysql -u rootUPDATE user SET Password=PASSWORD(’xxx’) WHERE user=’root’;
flush privileges
4, Disable PHP functions:
edit etc/php.ini add the following line
disable_functions = show_source, system, shell_exec, passthru, phpinfo, proc_open, proc_nice
make sure the following parameters are set correctly:
register_globals = Off
allow_url_fopen = Off
allow_url_include = Off
display_errors = Off
log_errors = On
Ref: http://www.conftool.net/en/technical_documentation/security_hints.html
Popularity: 1%



















































