wiki:Drupal HowTo Update

Version 3 (modified by Richard Bramley, 9 years ago) ( diff )

--

Drupal How to Upgrade

Drupal Site Checklist

  1. Scad
  2. CiviCRM test
  3. CiviCRM live

Check to see if an upgrade is necessary

  1. Go to Report > Status Report.
  2. You may need to select available updates > Check manually to see the true latest version.

Update Drupal Core Manually

  1. Put the site into maintenance mode configuration > development > Maintenance mode
  2. Read the release notes for the update. Some custom files may need editing.
  3. Create a backup of the site using the full site backup script. Check to see if one has already been created with the correct directories, usernames and passwords
  4. Wget the updated file to the www directory and unzip it.
  5. Copy the new Drupal directory to form a new one to work with.
  6. Remove the sites directory from the new working directory and copy over the existing one from actual site directory.
  7. Make sure that the sites directory and its children are owned by www-data
  8. Check for any differences between the new and the existing .htaccess web.config and robots.txt file.
  9. Hopefully the non-customised old version of drupal will be available so you can diff the sites/default_settings.php to see if there are any differences that will need copying into the settings.php file.
  10. Move the existing directory to *_old and mv the new directory into its place.
  11. Go to the site and browse to update.php and follow the instructions.
  12. Restart Apache
  13. Take the site out of maintenance mode.

Update Drupal modules manually

  1. Put the site into maintenance mode configuration > development > Maintenance mode
  2. Read the release notes for the update. Some custom files may need editing.
  3. Cd into the sites/all/modules directory.
  4. wget the latest version of the module.
  5. remove the old version of the module directory
  6. Unzip the new version into its place
  7. Take the site out of maintenance mode.

Update Using Drush

  1. Log into the server
  2. Go to the Drupal root directory. For example, /local/www/drupal/
  3. run the command /local/drush/drush up
Note: See TracWiki for help on using the wiki.