[Drupal] How to upgrade your Drupal 6 site to Drupal 7?

| | 2 min read

Upgrading Drupal 6 to Drupal 7 is supposed to be a straightforward process but there are certain things you have to be careful about when you upgrade Drupal. The following list outlines the different steps you will have to follow to upgrade your non-mission-critical small Drupal site.

The instructions assume that the site is a small site and that you do not want to spend time running trial upgrades on a dev site and that you do not mind taking the site offline for a few hours. If the site is a mission critical site and cannot afford broken functionalities on the upgraded site then this is definitely not the way for you. You should follow the fully safe Drupal upgrade instructions

  1. List out all the modules used on the site in a spreadsheet
  2. Identify whether each of these modules have their Drupal 7 equivalents
  3. Read the upgrade instructions of each of these modules to identify special upgrade paths if any
  4. For each module that do not have a Drupal 7 equivalent identify if there is a recommended alternative module and identify if there is an upgrade/migrate path for the module
  5. For those modules that do not have a Drupal 7 equivalent and an alternative manually upgrade the module code
  6. Upgrade the theme code to Drupal 7 if you are not using a free theme.
  7. Take a full backup of the site
  8. Create a backup of the webroot
  9. Take the site offline
  10. Create a copy of the database and change settings.php to point to the new database
  11. Overwrite the core with the latest version of Drupal 6 (if it is not already so)
  12. Run update.php and bring core updates up-to-date
  13. Overwrite all the contributed modules to the latest version of Drupal 6
  14. Run update.php and bring all module updates up-to-date
  15. Disable all non-core modules after documenting the list of enabled modules
  16. Overwrite the core with the latest version of Drupal 7
  17. Run update.php and bring core updates up-to-date
  18. Overwrite contributed modules with the latest versions of the modules in Drupal 7 (also include the modules that were custom migrated).
  19. Run update.php and bring all module updates up-to-date

If there are issues in the update process, copy over the backed-up webroot and replace the new webroot. The settings.php in the restored webroot should be pointing to the original database and the old site should be back up again. If there are issues then the process will have to be run on a separate development and the issues sorted out before trying the process out again on the live site.

If you are looking to get help in upgrading your Drupal 6, Drupal 7 or Drupal 8 sites to Drupal 9 we will be happy to help. Get in touch with us to know more.