What is Lamp?

LAMP stack is a collection of 4 open source software which will help to create a web server in your Linux system. LAMP stands for Linux, Apache, MySQL, and PHP. To make a website live in public using VPS  you need to install apache . In this post we are trying to explain entire step how to install in in Your Ubuntu or Debian Server.

We also created and automated shell script so that you can install entire LAMP by running shell file.


  1. Linux Server with static IP (Ubuntu/Debian) / ( Click here for RedHat/Centos Installation )
  2. Minimum 128 MB Ram
  3. 600 Mhz Processor



Connect your VPS Server using ssh

Automated Script Installation

Steps 1 – Update Server

Step 2 – Installing Apache

Step 3 – Installing Mysql

Once you have installed MySQL, we should activate it with this command:

Finish up by running the MySQL set up script:

The prompt will ask you for your current root password.

Type it in.

OK, successfully used password, moving on…

Then the prompt will ask you if you want to change the root password. Go ahead and choose N and move on to the next steps.

It’s easiest just to say Yes to all the options. At the end, MySQL will reload and implement the new changes.

Once you’re done with that you can finish up by installing PHP.

Step 4 – Installing PHP

Step 5 – Installing PhpMyAdmin

  • Select Apache2 for the server
  • Choose YES when asked about whether to Configure the database for phpmyadmin with dbconfig-common
  • Enter your MySQL password when prompted
  • Enter the password that you want to use to log into phpmyadmin

After the installation has completed, add phpmyadmin to the apache configuration.

Add the phpmyadmin config to the file.

Step 6 – Restarting Apache