On this page
Update core (option 3)
Last updated on
17 August 2023
Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites
Before you begin
If not already done, it is suggested to read this Introduction. Which summarized all your options to choose from when updating your Drupal 7.
Update Drupal 7 core
- Make a backup of your Drupal instance (database). (For example: with MySQL)
- Download the latest release of your current Drupal version.
- Extract the [tar ball or zip] Drupal package.
- Set your site on maintenance mode (For ex: How on D7)
- Delete all the files & folders inside your original Drupal instance except for
sites/
and its sub-folders. This assumes that all of your custom work - including themes - is in the recommended spot: thesites/
folder tree. If you have made custom changes elsewhere you will need to either preserve them or plan to replace them later. Warning: If your Drupal installation is built from a distribution your site will break if you delete theprofiles/
folder. Don't delete the profile folder that corresponds to the distribution you installed, for exampleprofiles/kickstart/
if you installed Drupal Commerce Kickstart. - Copy all the folders and files except
sites/
from inside the extracted Drupal package [tar ball or zip package] into your original Drupal instance location. - Some updates do not include changes to
setting.php
and some do. If the update release includes changes tosettings.php
you will need to replace your oldsettings.php
insites/default/
with the new one, and then edit the site-specific entries (e.g. database name, user, and password) in the setting file. - If you have modified files such as
.htaccess
orrobots.txt
re-apply those changes to the new files. - If you have a
favicon.ico
file that was deleted replace it too - Login to your site as administrator or as user no 1
- Run update.php by navigating to http://yourdrupalsitename/update.php and follow the process to update your Drupal instance
- Disable maintenance mode
Troubleshooting
- If you experience problems during your site upgrade, see the Troubleshooting FAQ.
- Instead of commenting here, please read the module project page and, if necessary, post an issue or post a message in the forums.
Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion