Archive for the ‘Php’ Category

Secure Apache

pico /etc/apache2/conf.d/security

ServerSignature Off
ServerTokens Prod

/etc/init.d/apache2 restart

Secure PHP

pico /etc/php5/cgi/php.ini

pico /etc/php5/apache2/php.ini

expose_php = Off
disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
magic_quotes_gpc = Off
safe_mode = Off
register_globals = Off
allow_url_fopen = Off