Skip to content

Instantly share code, notes, and snippets.

@sebastiansommer
Last active December 25, 2017 16:29
Show Gist options
  • Save sebastiansommer/7d4244de0603e734a5e41a74968b24d7 to your computer and use it in GitHub Desktop.
Save sebastiansommer/7d4244de0603e734a5e41a74968b24d7 to your computer and use it in GitHub Desktop.
#!/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