Last active
December 25, 2017 16:29
-
-
Save sebastiansommer/7d4244de0603e734a5e41a74968b24d7 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 | |
# AWS PHP 7 | |
sudo yum update -y | |
sudo yum install -y httpd24 php70 mysql56-server php70-mysqlnd php70-mbstring.x86_64 git | |
sudo service httpd start | |
sudo service mysqld start | |
sudo chkconfig httpd on | |
sudo chkconfig mysqld on | |
sudo usermod -a -G apache ec2-user | |
sudo chown -R ec2-user:apache /var/www | |
sudo chmod 2775 /var/www | |
find /var/www -type d -exec sudo chmod 2775 {} \; | |
find /var/www -type f -exec sudo chmod 0664 {} \; | |
sudo mysql_secure_installation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment