Install LAMP Server Easily using command line

Hello Linux Lovers! The acronym LAMP is derived from first letters of Linux, Apache HTTP Server, Database MySQL, and Language PHP, Perl or Python. We already have shown you how to install LAMP on many platforms. So we can say that LAMP is a combination of operating system and open-source software stack. Lets start the LAMP setup procedure:

1. To install LAMP run the below command:

2. Run the following commands to setup user for your apache server, add permission & enable some modules:

3. Restart the apache server:

4. We will open the /etc/apache2/apache2.conf file in text editor to enable rewrite options. Run the below command:

and modify the below snap of script.


You can notice the word “None” to “All”.

Thats all for now. You may need some more configuration on the basis of your project requirements. But for basic web development this is enough. Lets check in your browser by writting the url: http://localhost  & press enter.



To test MySQL run this command:

Share with:

Categories: LAMP