Skip to content

olajide-adedayo/devops-apache-webserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

DevOps Apache Web Server Automation (AI-Assisted)

Overview

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.

Features

  • 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

Script: apache_setup.sh

Steps Performed

  1. Install Apache: sudo apt install apache2 -y
  2. Start Apache Service: sudo systemctl start apache2
  3. Enable Apache on Boot: sudo systemctl enable apache2
  4. Deploy Custom Web Page: echo "

    DevOps Automation: Apache Setup Successful

    " | sudo tee /var/www/html/index.html
  5. Check Apache Status: sudo systemctl status apache2

Output Interpretation

  • Service Status: Active: active (running), Loaded: loaded (/lib/systemd/system/apache2.service; enabled) → confirms Apache is running and enabled on boot
  • Custom Web Page:

    DevOps Automation: Apache Setup Successful

    → 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

Verification

  • Check page in terminal: curl http://localhost
  • Open browser and navigate to VM IP: http://

Key Takeaways

  • 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

Author

Olajide Adedayo Email: olajide.r.adedayo@gmail.com GitHub: https://github.com/olajide-adedayo

About

AI-assisted DevOps automation: Apache web server setup automated with Copilot AI. Includes installation, configuration, custom web page deployment, and infrastructure-as-code workflow for learning and professional portfolio.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors