Last active
December 17, 2015 20:10
-
-
Save fieldoffice/5666132 to your computer and use it in GitHub Desktop.
Install WordPress using Terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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