Difference between revisions of "Wordpress SSH"
From KOP KB
								
												
				 (Created page with "<ol> <li><abbr title="Secure shell">SSH</abbr> into your server, then navigate to your domain’s web root:<br> <kbd>cd <var>/var/www/vhosts/example.com/httpdocs</var></kbd></...")  | 
				|||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| + | You will need to use some kind of terminal program to SSH into the server. Our suggested program is Putty.  | ||
| + | |||
<ol>  | <ol>  | ||
<li><abbr title="Secure shell">SSH</abbr> into your server, then navigate to your domain’s web root:<br>  | <li><abbr title="Secure shell">SSH</abbr> into your server, then navigate to your domain’s web root:<br>  | ||
<kbd>cd <var>/var/www/vhosts/example.com/httpdocs</var></kbd></li>  | <kbd>cd <var>/var/www/vhosts/example.com/httpdocs</var></kbd></li>  | ||
<li>Grab the latest <abbr title="WordPress">WP</abbr> install<br>  | <li>Grab the latest <abbr title="WordPress">WP</abbr> install<br>  | ||
| − | <kbd>wget   | + | <kbd>wget https://www.wordpress.org/latest.tar.gz</kbd></li>  | 
<li>Get the files out of the archive:<br>  | <li>Get the files out of the archive:<br>  | ||
<kbd>tar xfz latest.tar.gz</kbd></li>  | <kbd>tar xfz latest.tar.gz</kbd></li>  | ||
| − | <li>Navigate to the   | + | <li>Navigate to the wordpress subfolder:<br>  | 
<kbd>cd wordpress</kbd></li>  | <kbd>cd wordpress</kbd></li>  | ||
<li>Copy everything back up to the web root:<br>  | <li>Copy everything back up to the web root:<br>  | ||
| Line 12: | Line 14: | ||
<li>Navigate back up to web root:<br>  | <li>Navigate back up to web root:<br>  | ||
<kbd>cd ..</kbd></li>  | <kbd>cd ..</kbd></li>  | ||
| − | <li>Remove the   | + | <li>Remove the wordpress subfolder:<br>  | 
<kbd>rm -rf wordpress</kbd></li>  | <kbd>rm -rf wordpress</kbd></li>  | ||
<li>Remove the downloaded archive file:<br>  | <li>Remove the downloaded archive file:<br>  | ||
<kbd>rm -f latest.tar.gz</kbd></li>  | <kbd>rm -f latest.tar.gz</kbd></li>  | ||
</ol>  | </ol>  | ||
Latest revision as of 18:21, 14 January 2015
You will need to use some kind of terminal program to SSH into the server. Our suggested program is Putty.
- SSH into your server, then navigate to your domain’s web root:
cd /var/www/vhosts/example.com/httpdocs - Grab the latest WP install
wget https://www.wordpress.org/latest.tar.gz - Get the files out of the archive:
tar xfz latest.tar.gz - Navigate to the wordpress subfolder:
cd wordpress - Copy everything back up to the web root:
cp -rpf * ../ - Navigate back up to web root:
cd .. - Remove the wordpress subfolder:
rm -rf wordpress - Remove the downloaded archive file:
rm -f latest.tar.gz