Apache Setup - jude-lindale/Wiki GitHub Wiki

  1. Configure networking using nmtui as done in the networking section of Lab 03
    • with the IP Address of 10.0.5.4/24
    • a hostname of web01-jude
    • and the rest is the same except the DNS is 10.0.5.6
  2. Install httpd with the using yum install httpd
  3. enable httpd using systemctl
  4. start httpd using systemctl
  5. Configure the sshd_config located in /etc/ssh/sshd_config
    • for the permitrootlogin option change yes to no
    • then restart sshd using systemctl and then log in with the host that was created
    • if all went well ad01 or wsk03 should be able to ssh to web01-jude
  6. to add ports to the firewall us the command firewall-cmd --zone=public --add-port=80/tcp --permanent and firewall-cmd --zone=public --add-port=433/tcp --permanent
  7. similarly to add HTTP and https as services use firewall-cmd --zone=public --add-service=http --permanent and firewall-cmd --zone=public --add-service=https --permanent
  8. once that is done reload the firewall using firewall-cmd --reload