devops-basics

Apache HTTP Server (httpd)

1. What is Apache HTTP Server?

Overview

The Apache HTTP Server, commonly referred to as Apache httpd, is a free and open-source web server software developed and maintained by the Apache Software Foundation. It is one of the most widely used web servers in the world and plays a key role in the growth of the internet by supporting websites of all sizes and types.

Apache httpd supports a wide range of features including dynamic loading of modules, powerful URL rewriting, authentication mechanisms, and support for various programming languages through integration (e.g., PHP, Python, Perl). It can serve both static and dynamic content and is highly configurable and extensible.

Source: https://en.wikipedia.org/wiki/Apache_HTTP_Server

Official Website of Apache HTTP Server

Official Documentation of Apache HTTP Server

What you can do with Apache HTTP Server


2. Prerequisites


3. Installation

How to Install Apache HTTP Server?

On Ubuntu/Debian:

sudo apt update
sudo apt install apache2

On RHEL/CentOS/Rocky:

sudo dnf install httpd

On macOS (using Homebrew):

brew install httpd

Start and Enable Apache:

# Start the service
sudo systemctl start apache2     # Ubuntu/Debian
sudo systemctl start httpd       # RHEL/CentOS

# Enable on boot
sudo systemctl enable apache2    # Ubuntu/Debian
sudo systemctl enable httpd      # RHEL/CentOS

Verify Installation


4. Basics of Apache HTTP Server

Get started with Apache httpd

Apache HTTP Server Quick Start Guide

Apache HTTP Server Hands-On


5. More…

Apache httpd Cheatsheet