
List the ufw application profiles by running the following command: If 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. 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. 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 1 - Installing ApacheĪpache is available within Ubuntu’s default software repositories, making it possible to install it using conventional package management tools. When you have an account created, log in as your non-root user to begin. 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 18.04. Additionally, you will need to enable a basic firewall to block non-essential ports. Prerequisitesīefore you begin this guide, you should have a regular, non-root user with sudo privileges configured on your server. This guide also outlines information about important Apache files and directories. In this guide, you will learn how to install an Apache web server on your Ubuntu 18.04 server.

It provides many powerful features including dynamically loadable modules, robust media support, and extensive integration with other popular software. The Apache HTTP server is the most widely-used web server in the world.
