Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save quickliketurtle/0e7d76f7fe7e36b996f8adb9aa07bd28 to your computer and use it in GitHub Desktop.
Save quickliketurtle/0e7d76f7fe7e36b996f8adb9aa07bd28 to your computer and use it in GitHub Desktop.
#!/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