Hide PHP and Apache web server versions from response header

Normal PHP & Apache installations won’t hide the server details from request response headers. See below [with default configuration],

rsz_1screenshot_from_2013-10-11_071725

To hide PHP & Apache web server version details from response headers, you have to edit few configuration files on your hosted server.

 

 

After made the above changes, restart the apache web server.

 

Now check the response header from your server,

rsz_screenshot_from_2013-10-11_082700

See the difference between the response headers before and after changing the configurations.

Note: These changes won’t made your server more secure. It is just hiding the configuration details from hackers.

 

Read More

Allow remote connections to mysql server

Here, we are going to discuss about allowing remote connections to our local MYSQL server. To do this just edit the MYSQL server configuration file my.cnf which you can found in /etc/mysql/my.cnf (Ubuntu 12.04). Check for the configuration variable called bind-address. Just comment that line by using # and then restart the MYSQL server. These steps you can do via Terminal. See below for more details:

i) Open your terminal

ii) Type sudo gedit  /etc/mysql/my.cnf and hit the ENTER

iii) Comment the bind-address line as discussed above

iv) Restart MYSQL server by typing the command sudo /etc/init.d/mysql restart. Hit the ENTER.

Once you have completed the above steps, check the remote connection to the MYSQL server.

Read More