
The Apache HTTP server is the most widely-used web server in the world.How to install VirtualBox Guest Additions on a GUI-less Ubuntu server host It provides many powerful features including dynamically loadable modules, robust media support, and extensive integration with other popular software.


In this guide, we’ll explain how to install an Apache web server on your Ubuntu 20.04 server. Prerequisitesīefore you begin this guide, you should have a regular, non-root user with sudo privileges configured on your server.

Additionally, you will need to enable a basic firewall to block non-essential ports. You can learn how to configure a regular user account and set up a firewall for your server by following our Initial server setup guide for Ubuntu 20.04. When you have an account available, log in as your non-root user to begin. Step 1 - Installing ApacheĪpache is available within Ubuntu’s default software repositories, making it possible to install it using conventional package management tools. Let’s begin by updating the local package index to reflect the latest upstream changes:Īfter confirming the installation, apt will install Apache and all required dependencies. Step 2 - Adjusting the Firewallīefore testing Apache, it’s necessary to modify the firewall settings to allow outside access to the default web ports. You will receive a list of the application profiles: List the ufw application profiles by typing: Assuming that you followed the instructions in the prerequisites, you should have a UFW firewall configured to restrict access to your server.ĭuring installation, Apache registers itself with UFW to provide a few application profiles that can be used to enable or disable access to Apache through the firewall. Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Thu 22:36:30 UTC 20h agoĪs confirmed by this output, the service has started successfully. However, the best way to test this is to request a page from Apache.

You can access the default Apache landing page to confirm that the software is running properly through your IP address.
