For full functionality of this site it is necessary to enable JavaScript. Here are the instructions how to enable JavaScript in your web browser. Secure LAMP Server


How to secure LAMP server

Last update:

To secure your LAMP server you need to make sure all software are updated and close all known vulnerabilities

Hide apache server signature with Apache and PHP version info to avoid risk of attackers using known vulnerabilities to abuse or harm your server.


How To Secure PHP vulnerability

Hide PHP Version

PHP version in HTTP response headers may reveal version vulnerabilities and it is best to hide it.

First check which PHP version is installed and active on your server. For example use version command as follow:

php --version

Then navigate to php folder or find the location of the active php.ini file and dd the following lines:

sudo vi /etc/php/php8/apache2/php.ini
expose_php = Off

How To Secure Apache server?

Keep Apache server updated

First you need to keep your Apache server updated. Run update command at least every month to get the latest films including vulnerability fixes.

sudo apt-get update

Turn off server signature on Apache server

Search for the apache configuration file and set ServerSignature Off to hide version info on any error pages. and set ServerTokens Prod to exclude server detailes in HTTP headers.

For linux Debian or Ubuntu use:

sudo vi /etc/apache2/apache2.conf

For linux CentOS or Fedora use:

sudo vi /etc/httpd/conf/httpd.conf

Click "i" to insert the following lines at the end of the file.
ServerSignature Off
ServerTokens Prod
Click esc and ":w".
Click ":q" to close vi editor.

Restart apache servcer using following command for Debian or Ubuntu:

sudo service apache2 restart


Cookie Policy


Last update: 14/06/2021 Version: 1.0
Following is an explaination on how and what cookies this site is using.
This site is currently using only necessary cookies for proper functionality, such as displaying content, logging in, validating your session, responding to your request for services, and other functions.
Most web browsers can be set to disable the use of cookies. However, if you disable these cookies, you may not be able to access features on our website.
Site is also using performance cookies to collect information about the use of the website, such as pages visited, traffic sources, users ’interests, content management, and other website measurements.
And functional Cookies that remember a user choices.
Site may use marketing and advertisement cookies to allow third parties to create, implement, operate and examine their digital marketing campaigns.
By accepting this notice you give us your consent to use all types of cookies.
Please check our privacy policy page and our cookie policy page on site to learn how you can disable our use of cookies.