Linux: CentOS: Installing Apache - eliminmax/cncs-journal GitHub Wiki

CentOS: Installing Apache

> Meaning of different command prompts > Unix/Linux: $: can be run as normal user
> Unix/Linux: #: must be run as root (or with sudo)
> Windows: >: Command Prompt or PowerShell
> Windows: PS>: PowerShell only
> Unix/Linux and Windows: $/>,#/>: Works in Windows and Unix/Linux. >

To set up Apache, follow these simple steps:

  1. Install the Apache software by running the following command, and confirm installation: # yum install httpd

  2. Start the httpd service, and set it to run at boot: # systemctl start httpd && systemctl enable httpd

  3. Allow the http and https services through the firewall: # firewall-cmd --add-service=http --add-service=https --permanent && firewall-cmd --reload

⚠️ **GitHub.com Fallback** ⚠️