Apache Installation - wAlber47/Tech-Journal GitHub Wiki
- Use yum to install the httpd package:
sudo yum install httpd
- Add firewall rules to add HTTP and HTTPS services to the firewall.
- Add HTTP:
firewall-cmd --add-service=http --permanent
- Add HTTPS:
firewall-cmd --add-service=https --permanent
- Reload:
firewall-cmd --reload
- To Check:
firewall-cmd --list-all
- 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"