Difference between revisions of "Wordpress SSH"

From KOP KB
Jump to: navigation, search
Line 5: Line 5:
 
<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 http://wordpress.org/latest.tar.gz</kbd></li>
+
<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>

Revision as of 22:35, 26 September 2014

You will need to use some kind of terminal program to SSH into the server. Our suggested program is Putty.

  1. SSH into your server, then navigate to your domain’s web root:
    cd /var/www/vhosts/example.com/httpdocs
  2. Grab the latest WP install
    wget https://www.wordpress.org/latest.tar.gz
  3. Get the files out of the archive:
    tar xfz latest.tar.gz
  4. Navigate to the wordpress subfolder:
    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