Upgrading 5.7 to 5.12 - do I need to do them all consecutively?

Comments

cog.rusty’s picture

No. Within the same major version (D5) you can go straight to 5.12.

GreenMoon’s picture

I want to upgrade from 5.1 to 5.12. The site works fine but I have been told to upgrade for security purposes. I have been looking but cannot find the instructions for upgrading. I apologize if they are in an obvious place, but can someone point me in the right direction?

cog.rusty’s picture

In short, these are the steps:

1. Take a backup of your database, just in case something goes wrong in step 4, using phpmyadmin or your cpanel or some other way.

2. Set your site to off-line in admin/settings/site-maintenance. For a minor update, between 5.x releases you don't need to disable any modules.

3. Replace all drupal core files with the new ones. For a minor update you can just overwrite them because the new version has exactly the same file structure, but make sure to keep:
- Everything which is under the sites/ directory, especially your settings.php file.
- Your uploaded files directory.
- If you have made any changes to your .htaccess file, that one too.

4. Important: Browse to http://yoursite.com/update.php and run it, to update the database. Don't select any versions manually. Let it do its work automatically.

5. Set your site back to online in admin/settings/site-maintenance

It is a good idea to check for updates of all your additional non-core modules as well. If you find any, replace their files (usually in sites/all/modules) and run update.php again.