Wordpress SSH

From KOP KB
Revision as of 17:51, 5 August 2014 by ReMaster (talk | contribs) (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></...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  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 http://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