Install Apache HTTP Server "httpd"

This section provides a tutorial example on how to install Apache HTTP Server 'httpd' on CentOS 8 systems.

The Apache HTTP Server, httpd, should be included as part of the CentOS 8 system. If it is not included, you can follow what I did to install it.

1. Install Apache HTTP Server, httpd, and its required packages:

herong$ sudo dnf install httpd


2. Start httpd with its default configuration:

herong$ sudo systemctl start httpd

3. Check its running status:

herong$ sudo systemctl status httpd

- httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; ...)
   Active: active (running) since Sun 2022-05-22
     Docs: man:httpd.service(8)
 Main PID: 36626 (httpd)
   Status: "Started, listening on: port 80"
    Tasks: 213 (limit: 820618)
   Memory: 45.5M
   CGroup: /system.slice/httpd.service

4. Check default Web page served by httpd:

herong$ curl http://localhost

<!DOCTYPE html>
<html lang="en">
  <meta name="generator" content="HTML Tidy for HTML5 for
   Linux version 5.7.28">
  <title>HTTP Server Test Page powered by CentOS</title>

5. Enable httpd as part of the system boot process:

herong$ sudo systemctl enable httpd

Created symlink /etc/systemd/system/ ->

Cool. I have installed Apache HTTP Server, httpd, on my CentOS computer!

Table of Contents

 About This Book

 Introduction to Linux Systems

 Process Management

 Files and Directories

Running Apache HTTP Server (httpd) on Linux Systems

 What Is Apache HTTP Server "httpd"

Install Apache HTTP Server "httpd"

 Enable Remote Access to "httpd" Service

 Publish Home Page index.html

 "apachectl status/start/stop" Commands

 Verify Apache HTTP Server "httpd" Environment

 Requirements for Supporting HTTPS on Apache

 Web Server Certificate and Required Fields

 Apache Configuration for HTTPS Protocol

 Common Issues with Apache HTTPS Support

 Listen to Non-Standard Ports with Apache

 Running Apache Tomcat on Linux Systems

 Running PHP Scripts on Linux Systems

 Running MySQL Database Server on Linux Systems

 Running Python Scripts on Linux Systems

 Conda - Environment and Package Manager

 GCC - C/C++ Compiler

 OpenJDK - Open-Source JDK

 Graphics Environments on Linux

 SquirrelMail - Webmail in PHP

 Tools and Utilities


 Full Version in PDF/EPUB