Skip to content

Instantly share code, notes, and snippets.

@dariodev
Last active March 14, 2016 14:22
Show Gist options
  • Save dariodev/95d612051ee23cd61960 to your computer and use it in GitHub Desktop.
Save dariodev/95d612051ee23cd61960 to your computer and use it in GitHub Desktop.
Install WordPress via SSH
1. SSH, then navigate to your domain’s web root (example path for serverpilot managed server)
/srv/users/serverpilot/apps/myapp/public
2. Get the latest WP install
wget http://wordpress.org/latest.tar.gz
3. Unpack the archive
tar zxf latest.tar.gz
4. Navigate to the wordpress directory
cd wordpress
5. Copy everything back up to the web root
cp -rpf * ../
6. Navigate back up to web root
cd ../
7. Remove the wordpress subfolder
rm -rf wordpress/
8. 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