Quick Tip: Upgrading Drupal from 6.x to 6.y

I recently received this inquiry from one of my Drupal workshop attendees and thought it might be helpful to some folks. Many of you have still not made the leap to Drupal 7 and might be looking to simply upgrade within different versions of Drupal 6. Here are some quick instructions to make life easier for you. (I actually found that this information is not that easy to find from a Google search. I will also be posting this on Drupal.org).

  1. On your browser, log in as admin and put site in maintenance mode.
     
  2. Create a backup of your database.
     
  3. Create a backup of your DRUPAL_ROOT (Drupal root directory - the directory where sites, modules, themes, update.php etc lives.)
    Note: you may need to double check if .htaccess was backed up, sometimes it has special settings.
     
  4. Download and uncompress the Drupal 6.y version that you want to upgrade to in a location different than the DRUPAL_ROOT.
     
  5. APART FROM "sites", delete all directories from the DRUPAL_ROOT (includes, misc, modules, profiles, scripts, themes)
     
  6. APART FROM "sites", move all files and directories from the new Drupal download into the DRUPAL_ROOT
     
  7. Using the diff command or otherwise, check the differences between the old .htaccess and the new .htaccess files.
     
  8. On your browser, go to http://yoursite.com/update.php and click on the continue button.
     
  9. In the "Drupal database update" page, click on "Select versions" and you should see that the "system module" has version preselected. Scroll down and click on "Update"
     
  10. Test as much of the site as possible to see if things are still functional. If anything breaks, restore the entire site and database from backups and contact Drupal consultants for help.
     
  11. If things work out, unset maintenance mode from your browser.

Remember, backup is the key! If you have a staging site, do this there first.

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.