Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rossarioking/f2a513c6812f5cf104f3c67b2cfa9c5f to your computer and use it in GitHub Desktop.
Save rossarioking/f2a513c6812f5cf104f3c67b2cfa9c5f to your computer and use it in GitHub Desktop.
Bootstrap to install Apache on Amazon Linux 2
#!/bin/bash
# Get Root Privilages
sudo su
# Install httpd (Amazon Linux v2)
yum update -y
yum install -y httpd.x86_64
systemctl start httpd.service
systemctl enable httpd.service
echo "Hello from $(hostname -f)" > /var/www/html/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment