To install Apache on Ubuntu Linux, run this command in a terminal:
Install Apache
sudoapt-getinstallapache2
This command will automatically install and configure the Apache web server on Ubuntu.
1
Verify Apache is running
The default port for Apache is 80. After a successful installation you should be able to access Apache's default web page by opening one of these URLs on your Ubuntu server:
http://localhost
http://ubuntu-server-address (from a remote PC)
In this example the Ubuntu server network address is 192.168.1.15.
2
Example: Default Apache page
After installing Apache you should see the default Apache page, for example: