Install Apache2 on Ubuntu server

Apache, in general, is most widespread web server. I believe that more than 90% of websites are hosted on Apache and increase usage of open source technologies, makes it more present in corporate environment. Installation is very easy, but additional configuration can be trickier. You will need no more then 2 minutes to install Apache2.

Login to your Ubuntu server and type following:

ittut@ubuntu:~$ sudo apt-get install apache2

You cann add switch -y to confirm installation automatically, but there is a chance to miss out information about additional packages that will be installed along with Apache2 (Slide 1).

Install Apache2 on Ubuntu server

Slide 1.

So, confirm with in order to proceed with installation. That is about everything.

Now little bit about configuration.

You will use plain text to configure Apache2. Configuration resides on apache2.conf file located in /etc/apache2/ directory. So do following in order to access configuration file:

ittut@ubuntu:~$ sudo nano /etc/apache2/apache2.conf

Now follow the comments to configure or change features.

This tutorial is short, but note the following tutorials in which I will explain configuration files.

I hope this tutorial was informative to you and I hope you will find other useful posts here. Feel free to comment, give feedback or contribute with your own tutorial.

Dejan Dzodan

Dejan Dzodan

IT professional for more then 15 years, mostly in financial institutions but with experience in ISP and retail. Proven in networking and overall infrastructure projects. Cisco instructor.

Leave a Reply

Your email address will not be published. Required fields are marked *


8 + 5 =