Skip to content

Instantly share code, notes, and snippets.

@iconifyit
Created August 19, 2021 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iconifyit/d7538803a9d9ca2ea0c18fe4ff35c62e to your computer and use it in GitHub Desktop.
Save iconifyit/d7538803a9d9ca2ea0c18fe4ff35c62e to your computer and use it in GitHub Desktop.
Bootstrap script for basic Wordpress install
#!/bin/bash
yum update -y
yum install httpd php php-mysql -y
cd /var/www/html
echo "healthy" > healthy.html
wget https://wordpress.org/wordpress-latest.tar.gz
tar -xzf wordpress-latest.tar.gz
cp -r wordpress/* /var/www/html/
rm -rf wordpress
rm -rf wordpress-*.tar.gz
chmod -R 755 wp-content
chown -R apache:apache wp-content
wget https://s3.amazonaws.com/bucketforwordpresslab-donotdelete/htaccess.txt
mv htaccess.txt .htaccess
chkconfig httpd on
service httpd start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment