#!/bin/sh yum update -y yum install -y httpd24 php70 mysql56-server php70-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 sudo chmod 2775 {} \; find /var/www -type f -exec sudo chmod 0664 {} \; service mysqld start chkconfig mysqld on