This file contains 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 mysql php56-mysqlnd | |
service httpd start | |
chkconfig httpd on | |
echo "fs-2b2c43da.efs.eu-west-2.amazonaws.com:/ /var/www/html nfs4 nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 0 0" >> /etc/fstab | |
mount -a |
This file contains 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
wget https://wordpress.org/wordpress-5.1.1.tar.gz | |
tar -xzf wordpress-5.1.1.tar.gz | |
cp -r wordpress/* /var/www/html/ |
This file contains 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
yum update -y | |
sudo yum install -y httpd php mysql php-mysqlnd | |
service httpd start | |
chkconfig httpd on | |
usermod -a -G apache ec2-user | |
sudo chown -R ec2-user:apache /var/www | |
sudo chmod 2775 /var/www |