Installation in Apache

From the Apache cheat sheet · Installation & Basic Commands · verified Jul 2026

Installation

Installing Apache on different platforms

bash
# Ubuntu/Debian
sudo apt update
sudo apt install apache2

# CentOS/RHEL/Fedora
sudo yum install httpd

# macOS with Homebrew
brew install httpd

# Check version
apache2 -v  # Debian/Ubuntu
httpd -v    # CentOS/RHEL
🌐 Most widely used web server
📦 Available as apache2 or httpd package
🔧 Highly modular and extensible
⚡ Config at /etc/apache2/ or /etc/httpd/

More Apache tasks

Back to the full Apache cheat sheet