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.
Connect to your server as the admin user via SSH.
Allways update your package sources so that you always install the latest version.
sudo apt-get update
We will be using Tasksel. Tasksel is an easy way to install some of the basic Ubuntu components.
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.
You should see the default page that is located on /var/www/html