Install and Setup – LAMP in Ubuntu 14.04 LTS Server

LAMP is short for:

  • Linux – Operation system
  • Apache – Webserver
  • Mysql – Database
  • PHP – Object-oriented scripting language

It is called a stack because it has four layers. These four layers combined together make a powerful platform, which can run on a low end machine. All the components in the stack are open source based and are free to use. Apache is one of the most popular web servers on the Internet and there are numerous forums and websites where you can get support and information. For example you can host Owncloud, Simple Machines Forums and WordPress sites – you name it the limit is the sky. This is only a few examples, there is so many different things you can do with the lamp stack.
So how do your install it?

You can install all the modules one by one, but you can also install the whole lamp stack with one command, it is up to you.


But in this tutorial I will use the most simple way. So we are only going to use one simple command

You will be asked to choose a password for your Mysql database. Please do yourself a favour and write the password down on a peace of paper so you don’t forget it.

Now you should jump into your browser and type http://Your_IP_OR_DOMAIN. The site should look like this





Congratulations! Now you have a LAMP stack installed and ready to go. The page you will see in your browser is the index.html page located in /var/www/html this is you root directory. It is in this directory you should place the content you want to host.

Pssssst! A great way to manage your Database could be with PhpMyAdmin