Created
March 11, 2018 00:21
-
-
Save quickliketurtle/0e7d76f7fe7e36b996f8adb9aa07bd28 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 httpd php php-mysql stress -y | |
cd /etc/httpd/conf | |
cp httpd.conf httpdconfbackup.conf | |
rm -rf httpd.conf | |
wget https://s3-eu-west-1.amazonaws.com/acloudguru-wp/httpd.conf | |
cd /var/www/html | |
echo "healthy" > healthy.html | |
wget https://wordpress.org/latest.tar.gz | |
tar -xzf latest.tar.gz | |
cp -r wordpress/* /var/www/html/ | |
rm -rf wordpress | |
rm -rf latest.tar.gz | |
chmod -R 755 wp-content | |
chown -R apache:apache wp-content | |
service httpd start | |
chkconfig httpd on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment