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/):
- Login via SSH to your host
- Go to a temporary directory:
cd /tmp - Grab the latest WP archive:
wget http://wordpress.org/latest.tar.gz - Extract the archive contents:
tar xzf latest.tar.gz - You should now see a wordpress directory extracted in the currect location, go in it:
cd wordpress/ - Copy the default themes to your WP install’s wp-content/themes directory:
cp -R wp-content/themes/* ~/public_html/wp-content/themes/ - 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/ - Delete the wp-content directory:
rm -rf wp-content/ - 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!










May 21st, 2007 at 7:09 pm
thanks , usefull tutorial !
August 5th, 2007 at 5:40 pm
[...] 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. [...]
August 7th, 2007 at 12:47 pm
[...] 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 [...]
October 2nd, 2007 at 1:54 pm
[...] Performed the WordPress upgrade via SSH [...]
October 28th, 2007 at 1:08 am
[...] 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 [...]
March 31st, 2008 at 2:02 am
[...] Grab the latest WordPress build; extract the contents; replace the older files on your server (or you can do this painlessly via SSH) [...]
May 22nd, 2009 at 2:26 am
nice post, thx for sharing it
September 17th, 2009 at 12:47 am
Too risky for me, when I do this myself.