Apache, PHP, Servers/Services

Hide PHP version from hachers!

Another small step to a more secure web server is to hide PHP version.

To do this you have to locate your php.ini file in your server.

Usually php.ini is located in /etc or /etc/php5/apache2.

1. Make a backup of your php.ini file.

2. Open php.ini file for edit.

3. Locate line: expose_php = On and change it to expose_php = Off

That’s it! PHP version number is not available anymore in your web server’s HTTP headers.