How to Install Apache on Ubuntu 20.04

Maneesh kushwaha
3 min readMay 26, 2020

How to Install Apache on Ubuntu 20.04

May 11, 2020 by Editorial Staff

Contents [hide]

How to Install Apache on Ubuntu 20.04

Reading full article here https://www.mstvlife.com/how-to-install-apache-on-ubuntu-20-04/

We hope this post helped you to find out How to Install Apache on Ubuntu 20.04

Apache is without doubt one of the hottest internet servers on the earth. It’s an open-source and cross-platform HTTP server that powers a big proportion of the Web’s web sites. Apache offers many highly effective options that may be prolonged by way of further modules.

This tutorial describes set up and handle the Apache webserver on Ubuntu 20.04.

Stipulations #

Earlier than beginning with the tutorial, be sure you are logged in as a person with sudo privileges.

Installing in Apache #

Reading full article here https://www.mstvlife.com/how-to-install-apache-on-ubuntu-20-04/

Apache is included within the default Ubuntu repositories.

The set up is fairly simple. On Ubuntu and Debian techniques, the Apache package deal and the service known as apache2.

Run the next instructions to replace the package deal index and set up Apache:

sudo apt update
sudo apt install apache2

When the set up course of, is full the Apache service will mechanically begin.

You’ll be able to confirm that Apache is working by typing:

Reading full article here https://www.mstvlife.com/how-to-install-apache-on-ubuntu-20-04/

sudo systemctl status apache2

The output ought to inform you that the service is working and enabled to start out on system boot:

● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2020-05-09 19:28:40 UTC; 36min ago
...

That’s it, you will have efficiently put in Apache in your Ubuntu 20.04 server, and you can begin utilizing it.

Opening HTTP and HTTPs Ports #

Apache listens on port 80 (HTTP) and 443 (HTTPS). You should open these ports in your firewall in order that the webserver is accessible from the Web.

Assuming you might be utilizing UFW, you are able to do that by enabling the ‘Apache Full’ profile which incorporates guidelines for each ports:

sudo ufw allow 'Apache Full'

Verify the change:

sudo ufw statusStatus: activeTo                         Action      From
-- ------ ----
22/tcp ALLOW Anywhere
Apache Full ALLOW Anywhere
22/tcp (v6) ALLOW Anywhere (v6)
Apache Full (v6) ALLOW Anywhere (v6)

Verifying the Apache Installation #

Reading full article here https://www.mstvlife.com/how-to-install-apache-on-ubuntu-20-04/

To confirm that every part works accurately, open your browser, sort your server IP deal with http://YOUR_IP_OR_DOMAIN/, and you will note the default Ubuntu 20.04 Apache welcome web page as proven beneath:

The web page contains some fundamental details about Apache configuration recordsdata, helper scripts, and listing places.

Organising a Digital Host #

A Digital Host is an Apache configuration directive that means that you can run multiple web site on a single server. Sometimes a digital host describes one web site.

Apache ships with one digital host enabled by default. All domains that factors to the server IP deal with will match the default digital host. Should you’ll be internet hosting a single web site you possibly can add its content material in /var/www/html and edit modifying the digital host configuration discovered within the /and many others/apache2/sites-enabled/000-default.conf file.

We hope the How to Install Apache on Ubuntu 20.04 help you. If you have any query regarding How to Install Apache on Ubuntu 20.04 drop a comment below and we will get back to you at the earliest.

We hope this post helped you to find out How to Install Apache on Ubuntu 20.04 . You may also want to see — How to Install Java on Ubuntu 20.04

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response