Skip to content

CentOS: Installing Apache

To set up Apache, follow these simple steps (all commands require root privileges):

  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