2005-10-23 17:49:26 +00:00
|
|
|
// $Id$
|
|
|
|
|
|
|
|
UPGRADING
|
|
|
|
---------
|
|
|
|
|
2007-01-09 09:16:10 +00:00
|
|
|
1. Backup your database and Drupal directory - especially your
|
|
|
|
"sites" directory which contains your configuration file and
|
|
|
|
added modules and themes, any contributed modules in your
|
|
|
|
"modules" directory, and your "files" directory which contains
|
|
|
|
uploaded files.
|
2005-10-23 17:49:26 +00:00
|
|
|
|
2007-01-09 09:16:10 +00:00
|
|
|
Note: for a single site setup the configuration file is the
|
|
|
|
"settings.php" file located at sites/default/settings.php.
|
|
|
|
For multisite configuration the configuration file is located
|
|
|
|
in a structure like the following:
|
2006-12-29 19:38:47 +00:00
|
|
|
|
2007-01-09 09:16:10 +00:00
|
|
|
sites/default/settings.php
|
|
|
|
sites/example.com/settings.php
|
|
|
|
sites/sub.example.com/settings.php
|
|
|
|
sites/sub.example.com.path/settings.php
|
2006-12-29 19:38:47 +00:00
|
|
|
|
2007-01-09 09:16:10 +00:00
|
|
|
More information on multisite configuration is located in
|
|
|
|
the INSTALL.txt file.
|
2005-10-23 17:49:26 +00:00
|
|
|
|
2007-01-09 09:16:10 +00:00
|
|
|
2. Log on as the user with user ID 1. User ID 1 is the first
|
|
|
|
account created and the main administrator account. User
|
|
|
|
ID 1 needs to be logged in so that you can access update.php
|
2007-08-28 11:42:56 +00:00
|
|
|
(step 10) which can only be run by user ID 1. Do not close
|
|
|
|
your browser until step 11 is complete.
|
2005-10-23 17:49:26 +00:00
|
|
|
|
2007-01-09 09:16:10 +00:00
|
|
|
3. Place the site in "Off-line" mode, to mask any errors from
|
|
|
|
site visitors.
|
2007-01-08 17:16:12 +00:00
|
|
|
|
2007-01-09 09:16:10 +00:00
|
|
|
4. Disable contributed modules and switch to a core theme
|
|
|
|
(Bluemarine or Garland).
|
2007-01-08 11:58:21 +00:00
|
|
|
|
2007-01-09 09:16:10 +00:00
|
|
|
5. Remove all of the old files and directories from the Drupal
|
|
|
|
installation directory.
|
2005-10-23 17:49:26 +00:00
|
|
|
|
2007-01-09 09:16:10 +00:00
|
|
|
6. Unpack the new Drupal files and directories into the Drupal
|
|
|
|
installation directory.
|
2006-12-26 14:01:41 +00:00
|
|
|
|
2007-01-09 09:16:10 +00:00
|
|
|
7. Copy the backed up "files" and "sites" directories to the
|
|
|
|
Drupal installation directory. If the original .htaccess or
|
|
|
|
robots.txt files have been modified, copy the backed up
|
|
|
|
versions of these files to the installation directory as
|
|
|
|
well.
|
2006-12-26 14:01:41 +00:00
|
|
|
|
2007-01-09 09:16:10 +00:00
|
|
|
8. Verify the new configuration file to make sure it has the
|
|
|
|
latest and correct information.
|
2006-12-26 14:01:41 +00:00
|
|
|
|
2007-01-09 09:16:10 +00:00
|
|
|
9. Re-install contributed modules.
|
2006-12-26 14:01:41 +00:00
|
|
|
|
2007-01-09 09:16:10 +00:00
|
|
|
Note: make sure the version of a module matches your
|
|
|
|
version of Drupal. Modules from previous versions may
|
|
|
|
not be compatible with the current version. Check
|
|
|
|
http://drupal.org/project/Modules for the version of a
|
|
|
|
module to match your version of Drupal.
|
2006-12-26 14:01:41 +00:00
|
|
|
|
2007-01-08 17:16:12 +00:00
|
|
|
10. Run update.php by visiting http://www.example.com/update.php
|
2007-01-09 09:16:10 +00:00
|
|
|
(replace www.example.com with your drupal installation's
|
|
|
|
domain name and path). This step will update the database to
|
|
|
|
the new Drupal installation.
|
2006-12-26 14:01:41 +00:00
|
|
|
|
2007-01-09 09:16:10 +00:00
|
|
|
Note: if you are unable to access update.php do the following:
|
2006-12-26 14:01:41 +00:00
|
|
|
|
2007-08-28 11:42:56 +00:00
|
|
|
- Open your settings.php with a text editor.
|
2006-12-26 14:01:41 +00:00
|
|
|
|
2007-08-28 11:42:56 +00:00
|
|
|
- There is a line that says $update_free_access = FALSE;.
|
|
|
|
Change it to $update_free_access = TRUE;.
|
2006-12-26 14:01:41 +00:00
|
|
|
|
2007-08-28 11:42:56 +00:00
|
|
|
- As soon as the update.php script is done, you must change
|
|
|
|
the settings.php file back to its original form with
|
|
|
|
$update_free_access = FALSE;.
|
2006-12-26 14:01:41 +00:00
|
|
|
|
2007-01-08 17:16:12 +00:00
|
|
|
11. Finally, return site to "Online" mode so your visitors may resume
|
|
|
|
browsing.
|
|
|
|
|
2006-12-26 14:01:41 +00:00
|
|
|
For more information on upgrading visit the Drupal handbook at
|
2006-12-29 19:38:47 +00:00
|
|
|
http://drupal.org/upgrade
|