Version 4 (modified by 10 years ago) ( diff ) | ,
---|
Drupal How to Upgrade
Drupal Site Checklist
- Scad
- CiviCRM test
- CiviCRM live
Check to see if an upgrade is necessary
- Go to
Report > Status Report
. - You may need to select
available updates > Check manually
to see the true latest version.
Update Drupal Core Manually
- Put the site into maintenance mode
configuration > development > Maintenance mode
- Read the release notes for the update. Some custom files may need editing.
- 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
- Wget the updated file to the www directory and unzip it.
- Copy the new Drupal directory to form a new one to work with.
- Remove the
sites
directory from the new working directory and copy over the existing one from actual site directory. - Make sure that the sites directory and its children are owned by www-data
- Check for any differences between the new and the existing .htaccess web.config and robots.txt file.
- 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. - Move the existing directory to *_old and mv the new directory into its place.
- Go to the site and browse to update.php and follow the instructions.
- Restart Apache
- Take the site out of maintenance mode.
- If CiviCrm is installed, clear it's cache
Update Drupal modules manually
- Put the site into maintenance mode
configuration > development > Maintenance mode
- Read the release notes for the update. Some custom files may need editing.
- Cd into the
sites/all/modules
directory. - wget the latest version of the module.
- remove the old version of the module directory
- Unzip the new version into its place
- Take the site out of maintenance mode.
Update Using Drush
- Log into the server
- Go to the Drupal root directory. For example,
/local/www/drupal/
- run the command
/local/drush/drush up
Note:
See TracWiki
for help on using the wiki.