wiki:Drupal HowTo Update

Drupal HowTo Update

Tags: Drupal HowTo

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/default.settings.php to see if there are any differences that will need copying into the settings.php file.
  10. Cd into the drupal/includes/database directory and create a symbolic link to the dblib folder using the command sudo ln -s ../../sites/all/modules/dblib_driver_for_sql_server/dblib ..
  11. Change the owner of the dblib link to www-data using the command sudo chown www-data:www-data dblib
  12. Move the existing directory to *_old and mv the new directory into its place.
  13. Go to the site and browse to update.php and follow the instructions.
  14. Restart Apache
  15. Take the site out of maintenance mode.
  16. If CiviCrm is installed, clear it's cache

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. Go to the site and browse to update.php and follow the instructions.
  8. Restart Apache
  9. Take the site out of maintenance mode.
  10. If CiviCrm is installed, clear it's cache

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

Error: Macro BackLinks(None) failed
'Environment' object has no attribute 'get_db_cnx'

Last modified 7 years ago Last modified on 09/17/15 10:21:55
Note: See TracWiki for help on using the wiki.