Skip to content

Instantly share code, notes, and snippets.

@ahmed-bhs
Last active January 12, 2018 17:42
Show Gist options
  • Save ahmed-bhs/ee06c6869a4df71ae847c45ab6254fca to your computer and use it in GitHub Desktop.
Save ahmed-bhs/ee06c6869a4df71ae847c45ab6254fca to your computer and use it in GitHub Desktop.
#!/bin/bash
yum update -y
yum install -y httpd24 php56 mysql55-server php56-mysqlnd
service httpd start
chkconfig httpd on
groupadd www
usermod -a -G www ec2-user
chown -R root:www /var/www
chmod 2775 /var/www
find /var/www -type d -exec chmod 2775 {} +
find /var/www -type f -exec chmod 0664 {} +
aws s3 cp s3://mybucket-name/index.html /var/www/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment