Rice Blogger

Malaysia Internet Marketing, Blogging Tips, SEO, Make Money Online and Internet Entreprenuer. 2

Upgrading WordPress using SSH/Telnet

Posted by Adi Wong On December - 17 - 2008

The easiest way to upgrade your wordpress in minutes is through SSH. With the latest release of WordPress 2.7, you could try to upgrade your wordpress in this method. In most of the share hosting including hostgator (my hosting company), it does include SSH but it is not activated. Therefore you will have to request from them that SSH be activated and they will provide you with a telnet ip (others will be telnet to your domain).

You could use puTTy or you can use your default windows telnet by

  • start > run
  • telnet 182.xxx.xxx.xxx 2222 (your ip or the domain here & 2222 is the port if requires)

After telnet, you will have to do the following. ** Remember to make a backup of your files before doing update)



  1. Login via SSH to your host
  2. Go to a your domain directory. (most probably type: cd public_html)
  3. Grab the latest WP archive (type: wget http://wordpress.org/latest.tar.gz)
  4. Extract the archive contents (type: tar xzf latest.tar.gz)
  5. You will see a new directory called wordpress (type: ls -l)
  6. Delete wp-includes and wp-admin directories (type: rm -rf wp-includes/) (type:rm -rf wp-admin/)
  7. Goto the new wordpress directory (type: cd wordpress)
  8. Update your default wordpress theme and plugin (type: cp -R wp-content/themes/* ../wp-content/themes/) (type: cp -R wp-content/plugins/* ../wp-content/plugins/)
  9. Delete wp-content directory (type: rm -rf wp-content/)
  10. Copy all latest version of wordpress files and directories and overite your current wordpress (type:cp -R * ../)
  11. Deleting the downloaded files (type: cd ..) (type: rm -rf ./wordpress/) (type: rm -f latest.tar.gz)

Careful while using telnet because command like rm-r or rm-rf will delete your folder and files without any warning and there is no way of getting them back. Backup is important and makesure you are at the right directory. Check directory by using the command (type: SSH)

Use this tutorial at your own risk, remember to backup your files before doing and upgrade and deleting.

ClassiPress Banner 2

Related Posts

Posted in :Blogging Tips

8 Responses to “Upgrading WordPress using SSH/Telnet”

  1. SoLinkable says:

    This seems like a dangerous way to upgrade your wordpress blog. Why not just follow the normal upgrade procedure? I’m afraid I would mess this up…

  2. Atniz says:

    Upgrading to WP2.7 is easy. It took less than 10s for me. The changes is truly awesome. I think they need to provide a guidance ebook for it.

  3. wow, this is another alternative to upgrade our wordpress, hmm it’s look simple and I my opinion is same like SoLinkable I’m afraid i would mess up.

  4. Geek Mother says:

    With upgrade plugins prior to Version2.7 and now self updating then upgrading has certainly become easier over the last year or so – I must say that I do like the auto plugin installer features of 2.7 even though the dashboard limits editing space. So long as the upgrade works then people can choose their own route – techies take the techie route or just click the button – does it really matter?

  5. Travelcn says:

    I never thought this could possible, it sounds a quick approach, but I am sure one should be very careful and has to do several test run before actually doing it.

  6. [...] needed for us to download, and upload them back to our website. Another method that I uses is to upgrade wordpress via SSH. But nothing beats the two clicks upgrade, as now you see that the newer version is available, [...]

  7. Adi Wong says:

    Travelcn: we no longer need this now

  8. [...] helps in my experience as a webmaster/blogger/internet marketer. Not to forget my previous post Upgrading WordPress via SSH, it is still useful when we want to install a new blog, or the automatic upgrade is not working. [...]

Leave a Reply

About Me

Adi Wong is a Malaysian with a passion in Internet Marketing, Photography, and Programming.