Skip to content

Instantly share code, notes, and snippets.

@amcginlay
Last active August 6, 2019 12:15
Show Gist options
  • Save amcginlay/e69be90364e80b828ea3c9ce4727c242 to your computer and use it in GitHub Desktop.
Save amcginlay/e69be90364e80b828ea3c9ce4727c242 to your computer and use it in GitHub Desktop.
AWS EC2 MySQL
#!/bin/bash
yum update -y
yum install httpd php php-mysql -y
chkconfig httpd on
service httpd start
echo "<?php phpinfo();?>" > /var/www/html/index.php
cd /var/www/html
wget https://s3.amazonaws.com/acloudguru-production/connect.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment