Skip to content

Instantly share code, notes, and snippets.

@elva4012
Forked from mikepfeiffer/apache.sh
Created May 29, 2021 01:21
Show Gist options
  • Save elva4012/3b2b01cdf09b92845d46157e05f72be4 to your computer and use it in GitHub Desktop.
Save elva4012/3b2b01cdf09b92845d46157e05f72be4 to your computer and use it in GitHub Desktop.
EC2 Bootstrap Script for Apache
#!/bin/bash
yum update -y
yum install -y httpd
echo '<h1>Hello World</h1>' > /var/www/html/index.html
systemctl start httpd
systemctl enable httpd
@elva4012
Copy link
Author

Use this for your user data (script from top to bottom)
install httpd (Linux 2 version)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment