Created
June 1, 2018 18:07
-
-
Save Fallenstedt/eb22276c792c8fceb989daeaf9bf6d5d to your computer and use it in GitHub Desktop.
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 httpd php php-mysql stress -y | |
cd /etc/httpd/conf | |
cp httpd.conf htttpdconfbackup.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