4

I have a site built using Drupal 7.34, and now I want the core to be upgraded to 7.41 and would like to know the safest way to do it.

3 Answers 3

7

Yes, Drupal Core is self-contained in that any forward version of Drupal contains all the updates of intermediary versions of Drupal you are missing. So, you don't have to install and update Drupal manually through every single version of Drupal that is released.

The recommended way is to simply overwrite your drupal site files as per the distributed documentation with Drupal. Put your site in Maintenance Mode and run the update script.

Alternatively, you can upgrade Drupal via Patches: https://fuerstnet.de/en/drupal-upgrade-easy-way

1
  • 1
    Your answer is excellent as it clarifies Drupal is self-contained and also offers different ways to perform the update. I believe you should also add Drush as it's one of the best methods to do the update. Cheers.
    – Mario Awad
    Nov 11, 2015 at 11:21
4

Using drush to upgrade is for me the best, safest (as it does backups) and fastest way to upgrade Drupal, so:

Backup your databases and your files first.

drush archive-dump

Then to update core you can run

drush up drupal
2
  • does this method overwrite the .gitignore .htaccess file and robots.txt file? if yes, then if you made modifications to these files, you would lose them. So then you would need to have a backup of these files and re-upload them.
    – No Sssweat
    Nov 7, 2015 at 2:10
  • Yes this method overwrites the files you mention. It's not recommended to make modifications to those files or any files that come with core. If you need to modify those files check those modules for example: drupal.org/project/htaccess and drupal.org/project/robotstxt
    – Mario Awad
    Nov 11, 2015 at 11:19
3

Can i upgrade from 7.34 to 7.41 directly? What is the safest way to do so?

Yes you can.

Step 1)

Backup your server's Database and your Drupal folder.

Step 2)

Follow this Video Tutorial Update Drupal Core to newer version which is the safest way to do it.

Quick Summary of the Video

  1. Download Drupal 7.41 zip file and extract its contents.
  2. Delete the Sites folder and also .gitignore .htaccess and robots.txt files.
  3. Upload everything onto your server and overwrite the files.

Once you uploaded and overwritten everything on your server

  1. Put your website in Maintenace Mode (Configuration > Maintenance Mode)
  2. Go to www.yourwebsite.com/update.php and update the database
  3. Take your website out of Maintenace Mode
  4. Delete Install.php from your server. (not covered in the video, but its good to do it)
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.