Note: This tutorial will also work in Kubuntu, Lubuntu, Xubuntu, Ubuntu Gnome, Ubuntu Mate, Linux Mint and other Ubuntu Based Distributions.
This tutorial will show you how to set up a very basic LAMP server in Lubuntu, allowing you to create and test your websites locally.
Step 1 - Install Apache2
The first thing we need to do is install Apache2, so open your terminal and enter the following command
sudo apt-get install apache2
After installation open your webrowser and enter the following url http://localhost
You should see the Apache holding page.
Step 2 - Create www folder
Webpages are served from the /var/www directory, but I always find it better to serve the pages from my home directory, so the next thing we will do is create a new www folder on your desktop, then create a new file named index.html inside the www directory, copy and paste the HTML code below and then save the file.