Web Server, Installing

Simple instructions for installing an Apache web server.

Installing a Web Server

(From "Bootstrap Toolkit" by Scott Sumner, Raspberry Pi Geek, Issue 01, 2013)

In Raspbian or any other Debian-based flavor of Linux, open a terminal and enter:

sudo apt-get install apache2

After prompting for your password, the Apache web server should be installed.

Place your HTML code in the default web directory /var/www, then open a browser of your choice. If you’re on the same machine as the server, the address is http://localhost/<yourFile>.html. If you’re reaching the machine over a network, then visit http://<Server_IP>/<yourFile>.html.

For more information, see Raspberry Pi Server Tools and Applications.

Related content