Skip to content

Instantly share code, notes, and snippets.

@fieldoffice
Last active December 17, 2015 20:10
Show Gist options
  • Select an option

  • Save fieldoffice/5666132 to your computer and use it in GitHub Desktop.

Select an option

Save fieldoffice/5666132 to your computer and use it in GitHub Desktop.
Install WordPress using Terminal
SSH into your server then navigate to your domain’s web root:
cd /var/www/domain/public/htdocs
Grab the latest WordPress install:
wget http://wordpress.org/latest.tar.gz
Get the files out of the archive:
tar xfz latest.tar.gz
Navigate to the wordpress folder:
cd wordpress
Copy everything back into the web root:
cp -rpf * ../
Navigate back up to web root:
cd ..
Remove the wordpress folder:
rm -rf wordpress
Remove the downloaded archive file:
rm -f latest.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment