INSTALLING APACHE WEB SERVER

The recommended open source web server is Apache. It has been developed over many years and I remember using it back in 2000 though its origins go back to the National Center for Supercomputing Applications in the mid-90s. The first public release of Apache was in April 1995. Apache is highly customisable and you should refer to the user guide for full information on how to configure it for your requirements. Follow the steps below to install Apache and set it up on your Pi.

Step 1

Use apt-get update to download any package updates and then write the changes to the local package cache. How long it takes depends upon how recently you ran the command previously and also how many new packages there are.

sudo apt-get update

Step 2

Install Apache - the package name is apache2.

sudo apt-get install apache2

Reply Y when prompted and then wait for the process to complete - this may take a couple of minutes. The process installs the software, sets up the default configuration file and starts the Apache processes.

Step 3

Screen shot of successful Apache installation

You can test that the web server is running by pointing a browser to your Pi's IP address. Providing Apache is the only application listening on default port 80, you should see the message shown here.

Step 4

From here, follow the separate processes below to change: