Markus’ Blog

The Austrian in Vancouver

Upgrading WordPress using Subversion

By markus at 12:19 on April 4, 2007 | 1 Comment |

I just love it. It’s so easy and simple. Much simpler than having to deal with tar-balls (or ZIP files). There are no worries that extracting the archive will overwrite custom files and no worries that old, stale files will be left behind. It’s all taken care of automatically. On top of everything else it’s much faster, too, because the amount of data that needs to be downloaded is so much less. Only code that actually changed is transferred, not the whole thing all over again.

Of course, one needs shell access to the server that has Wordpress installed for this to work — and a Subversion client. Also, Wordpress needs to be installed from Subversion (rather than a ZIP or TAR archive) in order to use Subversion to upgrade later on. Luckily, there is a nice article about Subversion and Wordpress that describes how this can be done.

Once everything is in place, upgrading is a single-command procedure. Subversion will take care of removing old files, creating new files and updating those that changed.

Verify the current version:

$ svn info Path: . URL: http://svn.automattic.com/wordpress/tags/2.0.9 Repository Root: http://svn.automattic.com/wordpress Repository UUID: 1a063a9b-81f0-0310-95a4-ce76da25c4cd Revision: 4914 Node Kind: directory Schedule: normal Last Changed Author: ryan Last Changed Rev: 4898 Last Changed Date: 2007-02-20 11:57:45 -0800 (Tue, 20 Feb 2007)

The actual command to upgrade (a one-liner):

$ svn switch http://svn.automattic.com/wordpress/tags/2.0.10 U wp-login.php U wp-comments-post.php U wp-includes/default-filters.php U wp-includes/template-functions-general.php U wp-includes/template-functions-category.php U wp-includes/links.php U wp-includes/functions-formatting.php U wp-includes/version.php U wp-includes/functions-post.php U wp-includes/classes.php U wp-includes/template-functions-links.php U wp-includes/pluggable-functions.php U wp-includes/comment-functions.php U wp-includes/functions.php U wp-includes/registration-functions.php U wp-includes/template-functions-author.php U xmlrpc.php U wp-trackback.php U wp-admin/edit-comments.php U wp-admin/post.php U wp-admin/upgrade.php U wp-admin/admin-functions.php U wp-admin/bookmarklet.php U wp-admin/admin-db.php U wp-admin/import/livejournal.php U wp-admin/import/dotclear.php U wp-admin/import/mt.php Updated to revision 5176.

There were only updated files (note the ‘U’) in this case, no added or deleted files (those would show as ‘A’ for added or ‘D’ for deleted).

Now, we verify that we actually have the new version:

$ svn info Path: . URL: http://svn.automattic.com/wordpress/tags/2.0.10 Repository Root: http://svn.automattic.com/wordpress Repository UUID: 1a063a9b-81f0-0310-95a4-ce76da25c4cd Revision: 5176 Node Kind: directory Schedule: normal Last Changed Author: ryan Last Changed Rev: 5174 Last Changed Date: 2007-04-03 11:14:52 -0700 (Tue, 03 Apr 2007)

Looks like it.

Update the database:

All that’s left to do is go to the admin pages to see if WordPress wants to update the database. This may happen if the database format was changed for the new release. If an update is required, WordPress will say so automatically. If not, the regular admin pages will appear — together with the new version number in the page footer.

Done. :-)

Of course, it’s always a good idea to make a backup of the WordPress directory and the database before attempting to upgrade. Even if it’s simple, things can go wrong.

Filed under: Blog, Computer Stuff1 Comment »

Thank You Akismet

By markus at 12:16 on April 3, 2007 | No comments |

Without Akismet (or similar software for other blogging platforms), I think blogging might be starting to die a slow death or at least change completely in the way it’s done (less freedom and openness).

Why? Because comment spam, which has already been quite bad, seems to have taken a huge turn for the worse over the last few weeks. Example: between 5:00pm yesterday evening and 9:00am this morning 74 spam comments were left on my blog. Mind you, all of them were caught.

74 spam and that’s just for my low-traffic, mostly unknown and therefore not really targeted blog. One can only imagine what the big sites are facing. I guess Matt Muellenweg’s spam counter (784,370 total spam rejected at the time of writing this post) gives a small indication. As a comparison, my spam rejected counter is currently at 1,862 (that’s since September 2006).

Without spam detection software that either quarantines or right out deletes “suspicious” comments, the only other choice would be to either severely limit who can leave a comment (require registration) and how to leave a comment (ask to type in a captcha), or to turn off commenting, which is an integral part of blogging, entirely.

There would simply be no other way to handle it. Sites would just be overwhelmed and turned into unwilling advertisers for all kinds of junk. Usenet pretty much went down that route. That’s were spam originated. People got fed up and stopped using it — at least for the purpose it was originally created to serve.

Let’s hope spammers won’t be able to do the same to the blogging community. For Internet-wide Akismet statistics, see their statistics page. It’s scary stuff.

Filed under: Blog, Computer Stuff, Opinion Leave A Comment »

Blog moved

By markus at 20:29 on January 15, 2007 | 1 Comment |

Looks like the new server, well virtual server actually, is up and working fine. I moved the blog over and everything seems to be running. I hope it stays that way. :-) Moving web sites from one server to an other usually means that a few things were overlooked or forgotten. Sometimes those mistake stay hidden at first. So it is certainly possible that the site will stop working again. I hope that won’t happen, but if it does, I’ll try and keep it short.

Filed under: Blog, Computer Stuff1 Comment »
« Previous Page