Same filename and directory in other branches
  1. 4.7.x UPGRADE.txt
  2. 5.x UPGRADE.txt
  3. 7.x UPGRADE.txt
UPGRADING
---------

Prior to upgrading, you should ensure that:

 * Your system meets or exceeds Drupal's minimum requirements as shown at
   http://drupal.org/requirements.
 * You have a backup of all your relevant data (#1).
 * Custom and contributed modules have been checked for compatibility (#11).
 * Custom and contributed themes have been checked for compatibility (#11).
 * You have read through this entire document.

Let's begin!

1.  Back up your Drupal database and site root directory. Be especially sure 
    to back up your "sites" directory which contains your configuration file, 
    added modules and themes, and your site's uploaded files. If other files 
    have modifications, such as .htaccess or robots.txt, back those up as well.

    Note: for a single site setup, the configuration file is the "settings.php"
    file located at sites/default/settings.php. The default.settings.php file
    contains a clean copy for restoration purposes, if required.

    For multisite configurations, the configuration file is located in a
    structure like the following:

      sites/default/settings.php
      sites/example.com/settings.php
      sites/sub.example.com/settings.php
      sites/sub.example.com.path/settings.php

    More information on multisite configuration is located in INSTALL.txt.

2.  If possible, log on as the user with user ID 1, which is the first account
    created and the main administrator account. User ID 1 will be able to
    automatically access update.php in step #10. There are special instructions
    in step #10 if you are unable to log on as user ID 1. Do not close your
    browser until the final step is complete.

3.  Place the site in "Off-line" mode, to let the database updates run without
    interruption and avoid displaying errors to end users of the site. This
    option is at http://www.example.com/?q=admin/settings/site-maintenance
    (replace www.example.com with your installation's domain name and path).

4.  If using a custom or contributed theme, switch
    to a core theme, such as Garland or Bluemarine.

5.  Disable all custom and contributed modules.

6.  Remove all old files and directories from the Drupal installation directory.

7.  Unpack the new files and directories into the Drupal installation directory.

8.  Copy your backed up "files" and "sites" directories to the Drupal
    installation directory. If other system files such as .htaccess or
    robots.txt were customized, re-create the modifications in the new
    versions of the files using the backups taken in step #1.

9.  Verify the new configuration file to make sure it has correct information.

10. Run update.php by visiting http://www.example.com/update.php (replace
    www.example.com with your Drupal installation's domain name and path). This
    step will update the core database tables to the new Drupal installation.

    Note: if you are unable to access update.php do the following:

      - Open your settings.php with a text editor.

      - There is a line that says $update_free_access = FALSE;
        Change it to $update_free_access = TRUE;

      - Once update.php is done, you must change the settings.php file
        back to its original form with $update_free_access = FALSE;

11. Ensure that the versions of all custom and contributed modules match the
    new Drupal version to which you have updated. For a major update, such as
    from 5.x to 6.x, modules from previous versions will not be compatible
    and updated versions will be required.

      - For contributed modules, check http://drupal.org/project/modules
        for the version of a module matching your version of Drupal.

      - For custom modules, review http://drupal.org/update/modules to
        ensure that a custom module is compatible with the current version.

12. Re-enable custom and contributed modules and re-run update.php
    to update custom and contributed database tables.

13. Return the site to its original theme (if you switched to a core
    theme like Garland or Bluemarine in step #4). If your site uses a
    custom or contributed theme, make sure it is compatible with your
    version of Drupal.

      - For contributed themes, check http://drupal.org/project/themes
        for the version of a theme matching your version of Drupal.

      - For custom themes, review http://drupal.org/update/theme to ensure
        that a custom theme is compatible with the current version.

14. Finally, return your site to "Online" mode so your visitors may resume
    browsing. As in step #3, this option is available in your administration
    screens at http://www.example.com/?q=admin/settings/site-maintenance
    (replace www.example.com with your installation's domain name and path).

For more information on upgrading visit
the Drupal handbook at http://drupal.org/upgrade

File

UPGRADE.txt
View source
  1. UPGRADING
  2. ---------
  3. Prior to upgrading, you should ensure that:
  4. * Your system meets or exceeds Drupal's minimum requirements as shown at
  5. http://drupal.org/requirements.
  6. * You have a backup of all your relevant data (#1).
  7. * Custom and contributed modules have been checked for compatibility (#11).
  8. * Custom and contributed themes have been checked for compatibility (#11).
  9. * You have read through this entire document.
  10. Let's begin!
  11. 1. Back up your Drupal database and site root directory. Be especially sure
  12. to back up your "sites" directory which contains your configuration file,
  13. added modules and themes, and your site's uploaded files. If other files
  14. have modifications, such as .htaccess or robots.txt, back those up as well.
  15. Note: for a single site setup, the configuration file is the "settings.php"
  16. file located at sites/default/settings.php. The default.settings.php file
  17. contains a clean copy for restoration purposes, if required.
  18. For multisite configurations, the configuration file is located in a
  19. structure like the following:
  20. sites/default/settings.php
  21. sites/example.com/settings.php
  22. sites/sub.example.com/settings.php
  23. sites/sub.example.com.path/settings.php
  24. More information on multisite configuration is located in INSTALL.txt.
  25. 2. If possible, log on as the user with user ID 1, which is the first account
  26. created and the main administrator account. User ID 1 will be able to
  27. automatically access update.php in step #10. There are special instructions
  28. in step #10 if you are unable to log on as user ID 1. Do not close your
  29. browser until the final step is complete.
  30. 3. Place the site in "Off-line" mode, to let the database updates run without
  31. interruption and avoid displaying errors to end users of the site. This
  32. option is at http://www.example.com/?q=admin/settings/site-maintenance
  33. (replace www.example.com with your installation's domain name and path).
  34. 4. If using a custom or contributed theme, switch
  35. to a core theme, such as Garland or Bluemarine.
  36. 5. Disable all custom and contributed modules.
  37. 6. Remove all old files and directories from the Drupal installation directory.
  38. 7. Unpack the new files and directories into the Drupal installation directory.
  39. 8. Copy your backed up "files" and "sites" directories to the Drupal
  40. installation directory. If other system files such as .htaccess or
  41. robots.txt were customized, re-create the modifications in the new
  42. versions of the files using the backups taken in step #1.
  43. 9. Verify the new configuration file to make sure it has correct information.
  44. 10. Run update.php by visiting http://www.example.com/update.php (replace
  45. www.example.com with your Drupal installation's domain name and path). This
  46. step will update the core database tables to the new Drupal installation.
  47. Note: if you are unable to access update.php do the following:
  48. - Open your settings.php with a text editor.
  49. - There is a line that says $update_free_access = FALSE;
  50. Change it to $update_free_access = TRUE;
  51. - Once update.php is done, you must change the settings.php file
  52. back to its original form with $update_free_access = FALSE;
  53. 11. Ensure that the versions of all custom and contributed modules match the
  54. new Drupal version to which you have updated. For a major update, such as
  55. from 5.x to 6.x, modules from previous versions will not be compatible
  56. and updated versions will be required.
  57. - For contributed modules, check http://drupal.org/project/modules
  58. for the version of a module matching your version of Drupal.
  59. - For custom modules, review http://drupal.org/update/modules to
  60. ensure that a custom module is compatible with the current version.
  61. 12. Re-enable custom and contributed modules and re-run update.php
  62. to update custom and contributed database tables.
  63. 13. Return the site to its original theme (if you switched to a core
  64. theme like Garland or Bluemarine in step #4). If your site uses a
  65. custom or contributed theme, make sure it is compatible with your
  66. version of Drupal.
  67. - For contributed themes, check http://drupal.org/project/themes
  68. for the version of a theme matching your version of Drupal.
  69. - For custom themes, review http://drupal.org/update/theme to ensure
  70. that a custom theme is compatible with the current version.
  71. 14. Finally, return your site to "Online" mode so your visitors may resume
  72. browsing. As in step #3, this option is available in your administration
  73. screens at http://www.example.com/?q=admin/settings/site-maintenance
  74. (replace www.example.com with your installation's domain name and path).
  75. For more information on upgrading visit
  76. the Drupal handbook at http://drupal.org/upgrade