Atlantic.Net Blog

How to Install Apache in CentOS 8

Verified and Tested 04/02/21

Introduction

In this How-To, we will walk you through the install of Apache in CentOS 8.

Apache is a web server that is very popular in Linux systems and over the Internet. It is used by many Web Hosting companies world wide because of its popularity and efficiency in hosting sites over the World Wide Web.

Prerequisites

A cloud server with CentOS 8 already installed.  If you currently do not have a server, consider one of the many affordable virtual private servers from Atlantic.Net.

Installing Apache on CentOS 8

Install Apache with the following command:

sudo yum install httpd

Start Apache with the following command:

sudo systemctl start httpd

You will want the Apache service to start on start-up/reboot with the following command:

sudo systemctl enable httpd

You can now verify that Apache is installed correctly by typing http:// and your IP on your browser.

http://YOUR.IP.ADD.RESS

You should see the following screenshot in your browser:

Sample Apache 2 Test Page

Apache 2 Test Page

Congratulations! You have just installed Apache on your CentOS 8 Cloud Server. Thank you for following along in this How-To and check back with us for any new updates.

Get started with 12 months of free cloud VPS hosting

Free Tier includes:
G3.2GB Cloud VPS Server Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year