Apache ‐ Setup and Using - rosepheobieshea/SYS-255-Tech-Journal GitHub Wiki

Install and Setup

  1. Install Apache

dnf install httpd

  1. Enable httpd daemon to boot on startup

systemctl enable httpd

  1. Start service

systemctl start httpd

  1. Check httpd status

systemctl status httpd | grep -i "active"

  1. Allow httpd through the firewall

firewall-cmd --permanent --add-port=80/tcp

  1. Reload firewall config

firewall-cmd --reload

To check error log:

journalctl -u httpd

Root webserver directory:

/var/www/html