This project demonstrates automation of Apache web server setup using AI-assisted coding (Copilot AI). The AI helped generate the shell script to install, configure, and deploy a custom web page on an Ubuntu VM. This workflow combines DevOps principles with AI productivity tools.
- AI-Assisted Shell Script: Script generated and optimized with Copilot AI
- Automated Apache Installation: Install Apache2 using script
- Service Management: Start, enable on boot, and status check with systemctl
- Custom Web Page Deployment: HTML page created automatically at /var/www/html/index.html
- Infrastructure as Code: Repeatable and reproducible setup
- Install Apache: sudo apt install apache2 -y
- Start Apache Service: sudo systemctl start apache2
- Enable Apache on Boot: sudo systemctl enable apache2
- Deploy Custom Web Page: echo "" | sudo tee /var/www/html/index.html
- Check Apache Status: sudo systemctl status apache2
- Service Status: Active: active (running), Loaded: loaded (/lib/systemd/system/apache2.service; enabled) → confirms Apache is running and enabled on boot
- Custom Web Page: → confirms successful deployment
- Minor Warnings (non-critical): AH00558: apache2: Could not reliably determine the server's fully qualified domain name → can be fixed by setting ServerName in /etc/apache2/apache2.conf
- Check page in terminal: curl http://localhost
- Open browser and navigate to VM IP: http://
- AI-assisted coding accelerates infrastructure automation while ensuring correctness
- Automation of Apache setup using shell scripting
- Service management and verification using systemctl
- Infrastructure as Code mindset reinforced
Olajide Adedayo Email: olajide.r.adedayo@gmail.com GitHub: https://github.com/olajide-adedayo