Apache Installation - wAlber47/Tech-Journal GitHub Wiki

  1. Use yum to install the httpd package: sudo yum install httpd
  2. Add firewall rules to add HTTP and HTTPS services to the firewall.
    1. Add HTTP: firewall-cmd --add-service=http --permanent
    2. Add HTTPS: firewall-cmd --add-service=https --permanent
    3. Reload: firewall-cmd --reload
    4. To Check: firewall-cmd --list-all
  3. After those commands run without failure, use systemctl enable httpd and systemctl start httpd
  • You can make files at /var/www/html/ that change what is displayed on the web-page, name them "index.html"