Random header image... Refresh for more!

Upgrading Wordpress via SSH

sshI’m posting this mostly due to sheer laziness.

Wordpress 2.3 was recently patched due to a nasty security vuln, but people are still getting caught out and haven’t moved to 2.3.1

So I thought I’d show you how easy it is.

Provided you can SSH to your provider, this is practically all you need to do:

(remember to cd in to the root of your wordpress installation before attempting the below)

  • wget http://wordpress.org/latest.tar.gz
  • tar xfz latest.tar.gz
  • rm -rf ./wp-includes/
  • rm -rf ./wp-admin/
  • cd wordpress/
  • cp -rpf * ../ (note, some distributions will require “cp -rpf –reply=yes * ../” - mine doesn’t)
  • cd ..
  • rm -rf ./wordpress/
  • rm -f latest.tar.gz

And there you go, a shiny new and upgraded wordpress. This won’t alter your themes or plugins, the usual caveats apply with compatibility of your themes, plugins and haxxies.

DISCLAIMER: I’m not to blame if you break your wordpress with the above, especially if you don’t bother to back up. The above works for me, I’m so confident of it in fact that it’s just a flat script that I run, so even simpler from my perspective… YMMV etc.

Technorati Tags: ,

November 2, 2007   No Comments

WordPress 2.3

Pretty handy that WP2.3 drops the week I revive my blog, and thanks to Techtites for reminding me of how simple it is to complete the process via SSH, upgrading was a quick and painless deal.

Just have to repeat the process for Mark, John and Caroline before I can get back to Halo3 :)

October 1, 2007   No Comments