Upgrading Your WordPress Installation Via SSH

Do not fear the shell! If you have SSH enabled web hosting, you should use it to upgrade your WordPress installation. Believe it or not, it only consists of a few steps (note that the instructions below assume that WP is installed in ~/public_html/):

  1. Login via SSH to your host
  2. Go to a temporary directory: cd /tmp
  3. Grab the latest WP archive: wget http://wordpress.org/latest.tar.gz
  4. Extract the archive contents: tar xzf latest.tar.gz
  5. You should now see a wordpress directory extracted in the currect location, go in it: cd wordpress/
  6. Copy the default themes to your WP install’s wp-content/themes directory: cp -R wp-content/themes/* ~/public_html/wp-content/themes/
  7. Copy the bundled plugins (Hello Dolly and Akismet) to your WP install’s wp-content/plugins directory: cp -R wp-content/plugins/* ~/public_html/wp-content/plugins/
  8. Delete the wp-content directory: rm -rf wp-content/
  9. Copy all other files and directories of the new version onto the WP installation path (overwriting the older ones): cp -R * ~/public_html/

To complete the process, run the WP upgrade script at http://yoursite/wp-admin/upgrade.php.

That’s it! Enjoy your upgraded WP!

9 responses to “Upgrading Your WordPress Installation Via SSH”.

  1. shewdiz Says:

    thanks , usefull tutorial !

  2. WordPress 2.2.2 And 2.0.11 Released - HTNet Says:

    […] If you’re on an SSH-enabled host and quite comfortable with the command line, then you might want to check out how you can upgrade your WP installation using SSH. […]

  3. Wordpress 2.2.2 and 2.0.11 Upgrade Released! | PapaJoneh’s Little Knowledge Says:

    […] HOST and want to be adventurous, you can try this command line help done freely by my Angel friend. The upgrading WordPress installation via SSH. Now, you know what you are missing if you are not on HTNetSol. So, what are you waiting for, click […]

  4. HTNet Running WordPress 2.3 - HTNet Says:

    […] Performed the WordPress upgrade via SSH […]

  5. WordPress 2.3.1 Released - HTNet Says:

    […] you have an SSH-enabled web host, you might want to upgrade WordPress using SSH; it took me less than 5 minutes to upgrade three blogs using this […]

  6. HTNet Now Runs WordPress 2.5 - HTNet Says:

    […] Grab the latest WordPress build; extract the contents; replace the older files on your server (or you can do this painlessly via SSH) […]

  7. debt loans Says:

    nice post, thx for sharing it

  8. coche Says:

    Too risky for me, when I do this myself.

  9. louis vuitton Says:

    […] If you’re on an SSH-enabled host and quite comfortable with the command line, then you might want to check out how you can upgrade your WP installation using SSH. […]