Skip to content

Instantly share code, notes, and snippets.

@sadanandkenganal
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sadanandkenganal/29739e4526e7592f5b89 to your computer and use it in GitHub Desktop.
Save sadanandkenganal/29739e4526e7592f5b89 to your computer and use it in GitHub Desktop.
Update Drupal Core

Steps to update Drupal core with a newer version of Drupal. (Eg. Drupal 7.27 to Drupal 7.28)

1. Make a backup of your Drupal instance. (Imp. With site folder and mysql)
2. Download the latest release of Drupal version.
3. Extract the [tar ball or zip] Drupal package.
4. Set your site on maintenance mode. (Visit this admin/config/development/maintenance).
5. Delete all the files & folders inside your original Drupal instance except for /sites folder and any custom files you added elsewhere.
6. Copy all the folders and files except /sites from inside the extracted Drupal package [tar ball or zip package] into your original Drupal instance.
7. If the update release includes changes to settings.php replace old settings.php in .../sites/default/ with the new one, and edit site-specific entries (eg database name, user, and password)
8. If you modified files such as .htaccess or robots.txt re-apply those changes to the new files.
9. Login to your site as administrator.
10. Run update.php by navigating to http://...yourdrupalsitename/update.php
11. Follow the process to update your Drupal instance
12. Disable maintenance mode (Visit this admin/config/development/maintenance).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment