Skip to content

Instantly share code, notes, and snippets.

@SPGB
Created March 13, 2015 20:46
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 SPGB/80cc5df8044c9c6a5478 to your computer and use it in GitHub Desktop.
Save SPGB/80cc5df8044c9c6a5478 to your computer and use it in GitHub Desktop.
wordpress-setup
#!/bin/sh
# wordpress-setup: Sets up a Wordpress instance on EC2
# written by Sam Gallagher-Bishop - 2015
echo "Starting Wordpress set up..."
sudo yum update -y
sudo yum install -y php php-mysql php-mbstring php-gd
wget https://wordpress.org/latest.tar.gz
tar -xzf latest.tar.gz
cd wordpress
sudo mv * /var/www/html/
sudo chmod -R 2775 /var/www
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment