Apache Installation firewall cmd Configuration - adaley0518/Tech_Journal GitHub Wiki
In web01-amber vm:
- command: sudo yum install httpd
 - 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
 
 - command: sudo systemctl start httpd
 - command: sudo systemctl enable httpd
 - command: sudo systemctl status httpd
 - In google chrome on wks, use the url: web01-amber/
- should show testing 123...
 
 - 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)
 
 
 - remove the welcome.conf file
 - go back to Google Chrome, web01-amber/ should show html information