We will be using Apache for the Web Server. These install instructions were taken from the Raspberry Pi Foundation website. Their guide can be found at www.raspberrypi.org/documentation/remote-access/web-server/apache.md

We will start with installing apache using the following command in terminal. This will take about 5 minutes to install.

sudo apt-get install apache2 -y

 Next we will navigate to where this was just installed.

cd /var/www/

Currently we do not have permissions to the folder html. We will need permissions so we can change the index page and add our files. To do this we will enter this in.

sudo chown pi: html

To test that Apache installed correctly we will open a web browser and go to


We now want to leave this folder and go back to the main directory. We will have issues later in the guide if we stay in /var/www, to exit just enter


This guide was first published on Dec 09, 2016. It was last updated on Nov 26, 2016.

This page (Install Apache) was last updated on Nov 23, 2016.

Text editor powered by tinymce.