Do you want to install LAMP-SERVER on Ubuntu Linux ?

LAMP stands for Linux, Apache, Mysql, Php

Its a package containing all required packages which are needed on linux for developing php application with apache server and mysql database server.

You can install each of the packages individually or just install a single package containing all this in one single command.

Which one you will prefer ?

Don’t worry ! I will show you both the methods…. 🙂

But one important thing, just make sure that you are logged in as ADMIN and full access to avoid any further problem.

If you want to install each package separately then you should check “Ubuntu Linux – Install LAMP-SERVER, linux, apache, mysql, php“.

Install everything in one shot

This is a more simple method.

Just one command and it will do everything.

sudo apt-get install lamp-server^

Yes ! Only one command with “^” (Carrot) symbol and you are done.

Yes ! finished.

Now once this is over, first thing is we have to set the root password of MySQL.

mysql -u root

Now you will get a mysql terminal/command prompt.


Thats all ! You are done with installation.

If you like to work with GUI for databases, then you should install “PHPMYADMIN”.

sudo apt-get install libapache2-mod-auth-mysql phpmyadmin

Once installation is started it will ask you for selecting server, there you select apache2 by hitting “SPACE” key and continue installation.

Test phpmyadmin in browser by http://localhost/phpmyadmin