HostOnNet Blog

How to install apache2 on Ubuntu

The Apache2 web server is available in Ubuntu Linux. To install Apache2:

Login as root, then enter the following command in terminal prompt:

apt-get install apache2

This will install apache. You will see the result as:
apache-install

Once the installation finished, open a browser and go to the URL “http://YourServerIP“. If you see the word “It Works!“, then your installation of apache is successful.

apache_home

Location of apache config in debian (ubuntu is copy of debian):

/etc/apache2

To completely remove apache2 and its configuration from Ubuntu, you can run following command:

apt-get remove apache2*

About Vineesh Mohan

A Technical Support specialist with strong customer service and good communication skills. I live in the city of Cochin, which known as the Queen of Arabian Sea.
Posted in Apache. Bookmark the permalink.