having fun with code

Upgrading Spaniards.es to Drupal 6

Last Saturday I decided to upgrade Spaniards.es to Drupal 6. I’ve been waiting for a long time, since Drupal 6 came out, basically because this site uses a lot of modules which weren’t available yet for the new version. Recently drupal.org was also upgraded and that was a decisive point for me.

It took me five hours to upgrade, but most of the process was making sure I had good backups copied on both servers but also downloaded to my personal computer. It takes a while to download a site like this!

Here is my log:

  1. Set Site Maintenance
  2. Set .htaccess maintenance redirect
  3. Stop MYSQL
  4. Backup spdba_main
  5. Backup public_html
  6. Rename public_html to public_html_5.15
  7. Create sym link to public_html: ln -s public_html_5.15 public_html
  8. Grab list of active modules select filename, status from system where filename like '%.module' and status = 1;
  9. Disable all non-core modules
  10. Download Drupal 6.9
  11. Delete sym link rm public_html
  12. Create sym link to Drupal 6 ln -s drupal-6.9 public_html
  13. Copy default.settings.php to settings.php
  14. Update DB connection string
  15. Process to upgrade Drupal: www.spaniards.es/update.php

Once the DB was updated, it was a matter of installing all the modules and upgrading the DB when needed. Most of the staff worked fine. I had to do some fixes on my custom modules, specially for the new menu hooks.

Drupal 6 rocks.

Related Posts:

5 Comments to Upgrading Spaniards.es to Drupal 6

  1. February 25, 2009 at 07:34 | Permalink

    I’m happy to see new posts in this blog :)

    It looks that you have a well-defined approach for doing upgrades.

    Have you automated the upgrading process or you do it manually instead?

    If you do it manually, you probably use some kind of backup script, don’t you?

    Quite interesting the fact that you rename the original folder, instead of removing or overwriting it. That makes me think about user contributed data (like images or other stuff uploaded for each user). So there are two possibilities, you have that data in the DB (which you probably don’t), or you use a different folder to separate the logic of the application from the user data, which I think is very clever and not everyone notices this.

    Thanks for sharing the process!

  2. February 28, 2009 at 11:20 | Permalink

    I agree, probably symlinks could be the best solution for files directory :)

    Quite interesting the mysqlhotcopy script! I didn’t know about it.

    Thanks for sharing all the stuff ;)

Leave a Reply

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Additional comments powered by BackType

About the blog

This is a blog about development, focused mainly on Javascript but also other languages like python, shell scripts and more.

About the author

Eneko Alonso is a software engineer and UI developer with more than eight years of experience in software and web development. He lives in San Luis Obispo, California and works at LEVEL Studios.

Contact Info

Contact Info

PromoteJS

JavaScript JS Documentation