Site Upgrade

Posted on November 29, 2009 by agentrickard

At long last, I have gotten around to upgrading the site. I moved from Drupal 5 to Drupal 6. And at the same time, I consolidated my old WordPress 2.8.x blog into the Drupal 6 architecture.

Two tools make this possible. One, the pretty nifty WordPress import module for Drupal. (A hat-tip, as well, to WP's nice XML export feature). The second, of course, is Domain Access, which allows multiple subdomains to run from a single Drupal installation.

With Domain Access in place, I can branch out a bit, and separate different parts of the site (and my life) to different audiences. So, for instance, the main blog is still Second Goose, where I post work-related material. On the main site, TheRickards.com, will be the best from all sites, and maybe some family stuff (mostly dog photos, probably). For fun, there is \m/etal.therickards.com where I will talk about heavy metal and albums I like. And I set up API.therickards.com to host API documentation for various modules that I maintain.

There may be a little dust flying around for a few days while things get settled. Hopefully there aren't too many broken links on the site. I also have to get ImageCache and its family of modules running later.

Comments

us too

March 2, 2010 by Mark (not verified), 1 week 2 days ago
Comment: 300

Hey, we're just about done with wordpress for our MICR microsite. Any tips on moving from wp to drupal6? Kinda worried our database structure might get corrupt.

Corruption

March 2, 2010 by agentrickard, 1 week 2 days ago
Comment: 301

I didn't have any data corruption issues. The biggest problem is file handling, since WP likes to embed files directly in posts. I ended up simply moving the WP images directory to the new site and leaving the old img tags in the posts.

That could be cleaned up using QueryPath http://querypath.org/ and its Drupal module.

If you want fine-grained control, you can also use Migrate module http://drupal.org/project/migrate to move the data selectively. This might be helpful, since its usually a MySQL to MySQL transfer, and Migrate module lets you inspect the data as you import.

Essentially, you move select portions of the WP db to a new Drupal db. I only have two users, so I didn't have to worry about that, either. Posts and tags came across fine. You might also need to tweak PathAuto or similar for Drupal to ensure your URLs don't change.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <blockquote> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Speaking Engagements

Contact me for availability.

Contact

  • agentrickard [at] gmail [dot] com

Donations

My Amazon.com Wish List