LAMP Configuration on Ubuntu A LAMP (Linux, Apache, MySQL, PHP) stack is a common web stack used for hosting web content. This guide shows you how to install a LAMP stack on an Ubuntu 14.04 (LTS) server. Before you begin update your system - # sudo apt-get update && sudo apt-get upgrade Apache Install and Configure sudo apt-get install apache2 Configure Virtual Hosts There are several different ways to set up virtual hosts; however, below is the recommended method. By default, Apache listens on all IP addresses available to it. Within the /etc/apache2/sites-available/ directory, create a configuration file for your website, example.com.conf , replacing example.com with your own domain information: vim /etc/apache2/sites-available/example.com.conf <VirtualHost *:80> ServerAdmin webmaster@example.com ServerName example.com ServerAl...