Last active
March 14, 2016 14:22
-
-
Save dariodev/95d612051ee23cd61960 to your computer and use it in GitHub Desktop.
Install WordPress via SSH
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
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