Apache Installation and firewall cmd Configuration - adaley0518/Tech_Journal GitHub Wiki

In web01-amber vm:

  1. command: sudo yum install httpd
  2. Add ports 80/tcp * 443/tp
    • command: sudo firewall-cmd --permanent --add-port=80/tcp
    • command: sudo firewall-cmd --permanent --add-port=443/tcp
    • command: sudo firewall-cmd --reload
  3. command: sudo systemctl start httpd
  4. command: sudo systemctl enable httpd
  5. command: sudo systemctl status httpd
  6. In google chrome on wks, use the url: web01-amber/
    • should show testing 123...
  7. After follow administrators directions:
    • remove the welcome.conf file
      • go to the directory: command: cd /etc/httpd/conf.d/
      • command: ls (should see files, welcome.conf)
      • command: rm welcome.conf
    • next, add index.html (to create web page in html)
      • command: cd /var/www/html
      • command: touch index.html
      • command: nano index.html (this is where you will input hostname in html)
  8. go back to Google Chrome, web01-amber/ should show html information