#!/bin/bash # Apache setup script sudo apt-get update sudo apt-get install -y apache2 # Basic Apache config cat > /etc/apache2/sites-available/000-default.conf << 'EOF' DocumentRoot /var/www/html AllowOverride All Require all granted EOF sudo systemctl restart apache2