The comonly used LAMP stack is the building block necessary for most web applications to run on a web server. LAMP stands fo Linux, Apache, MSQL, and PHP which are the main services required to run web applications like WordPress, Joomla, Drupal and many of today’s dynamic web applications that require constantly changing data to be relayed to the user.

Install

Step 1

Connect to your server as the admin user via SSH.

ssh [email protected]

Step 2

Allways update your package sources so that you always install the latest version.

sudo apt-get update

Step 3

We will be using Tasksel. Tasksel is an easy way to install some of the basic Ubuntu components.

sudo tasksel

Select LAMP server from the list and click ok this will install Apache, MYSQL Server and PHP.

Enter the Mysql password for the root user. Note: For security make this one different than your server’s password, and try not to use this user in any application that requires a database to store and pull data from.

That’s it, the server is ready, by default apache comes with a test page so we can test the server.

http://

You should see the default page that is located on /var/www/html