Apache Lab - Liam-DiFalco/Sys255-FA24 GitHub Wiki

Setting up Apache

Steps

  • Install httpd service on Linux Box
  • Enable ports 80 and 443

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

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

  • Then start the httpd service using systemctl

systemctl start httpd

systemctl enable httpd

  • Delete default page in base httpd directory, and create index.html in /var/www/html
  • add your own html code and you are done, you have a working local web server :)
  • To add a php page, just install the service php and restard httpd systemctl restart httpd
  • Then create a .php page in the /var/www/html directory and you are all set.

Takeaways

  • I like apache
  • But Nginx is better
  • This was incredibly easy to setup