News:

Daffodil International University Forum contains information about Open Text material, which is only intended for the significant learning purposes of the university students, faculty, other members, and the knowledge seekers of the entire world and is hoped that the offerings will aide in the distribution of reliable information and data relating to the many areas of knowledge.

Main Menu

Secure Apache and PHP

Started by mahbub-web, August 11, 2012, 05:34:35 PM

Previous topic - Next topic

mahbub-web

Hide Apache version

To make Apache stop sending its version number to any visitor do as follow:

    Edit the file http.conf or apache2.conf and add the following lines.

ServerSignature Off
ServerTokens Prod


    Restart Apache

Hide PHP version

Now the turn of PHP, we do not want those hackers out there to know which version of PHP we are running rig?

    Edit the file php.ini, usually in /etc/php/ or /etc/php/apache2/` and add or change the following lines:

expose_php = Off
display_errors = Off


    Restart Apache server.

You are done, now, your system is a little bit more secure. Remember that everybody have access to your server.

jabedmorshed

We should also "off" global register in PHP.

mod_negociation is also another module in Apache which should be off.
Jabed Morshed
Lecturer,
Department of Computer Science and Engineering