How to Install Apache (on Linux)

Type each of these commands into a terminal window:

sudo apt-get update
sudo apt-get install apache2

To check if Apache is running, enter either 127.0.0.1 or localhost into your web browser.