Last active
January 12, 2018 17:42
-
-
Save ahmed-bhs/ee06c6869a4df71ae847c45ab6254fca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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