Upgrade WordPress 2.7 in 3 Simple Steps

by on December 11, 2008 · 3 comments· Last updated December 11, 2008

WordPress version 2.7 has been released and can be upgraded easily using UNIX / Linux shell prompt. A few assumptions:

  1. WordPress database name: wptheosblog
  2. WordPress directory name: /var/www/html/theos.in
  3. WordPress domain name: theos.in
  4. Operating system: Linux
WARNING! If you are not comfortable with UNIX shell prompt (IF YOU ARE new to a UNIX/Linux os), please follow traditional way of upgrading wordpress and DO NOT use the three Steps described here.

Step # 1: Backup old files and database

If you run into problems Upgrading WordPress with the three Steps described here, you need to revert to your old version. Login to your hosting account using ssh client. Backup your mysql database, enter:
$ mkdir ~/theos.backup
$ mysqldump -u vivek -p 'passWord' -h localhost wptheosblog > ~/theos.backup/wptheosblog.sql

Now backup all existing wordpress files, enter:
$ mkdir ~/theos.backup/old
$ cd /var/www/html/theos.in/
$ cp -avr * ~/theos.backup/old

Next, login to your wordpress and disable all plugins.

Step # 2: Download wordpress 2.7 in /tmp

Type the following command (use wget command to grab latest version):
$ cd /tmp
$ wget http://wordpress.org/latest.zip -O latest.zip

Sample output:

--03:29:37--  http://wordpress.org/latest.zip
Resolving wordpress.org... 72.233.56.139, 72.233.56.138
Connecting to wordpress.org|72.233.56.139|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: `latest.zip'
    [         <=>                            ] 1,849,558    987K/s   in 1.8s
03:29:39 (987 KB/s) - `latest.zip' saved [1849558]

Unzip file, enter:
$ unzip latest.zip

Step # 3: Upgrade wordpress

Overwrite all files, enter:
$ cd /var/www/html/theos.in
$ rm -rf wp-admin wp-includes
$ cp -avr /tmp/wordpress/* .

Fire a browser and type
http://yourblog.com/wp-admin/upgrade.php
OR
http://theos.in/wp-admin/upgrade.php
Login to wordpress admin panel and enable all plugins.

Fig.01: WordPress 2.7 in action ( dashboard screenshot )

Fig.01: WordPress 2.7 in action ( dashboard screenshot )



You should follow me on twitter here or grab rss feed to keep track of new changes.

Featured Articles:

{ 3 comments… read them below or add one }

1 chika.tambun December 11, 2008 at 12:55 pm

whew….. it works well. 3 cool steps… seamlessly.
btw hmmm i used to indonesian version of wordpress… how to change them in english

Reply

2 shoaibi December 14, 2008 at 1:35 pm

thanks, worked great for me…

Reply

3 Oliver December 16, 2008 at 7:12 am

Thank you!

Just upgraded tonight. I always knew it was possible but having the steps right there for me pushed me to do it.

Keep up the great site!

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 5 + 15 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Tagged as: , , , , , , , , , , , ,

Previous post:

Next post: