Upgrade Moodle from 2.6 version to current version

Upgrade Moodle from 2.6 version to current version

by Sonia P -
Number of replies: 6

I have an old version of Moodle installed on my server, and I would like to update the current version.

My server provider has told me that I might need to do several updates before installing the current version, because 2.6 is too old.

How can I do it?

I will appreciate replies.

Thanks,

Sonia

Average of ratings: -
In reply to Sonia P

Re: Upgrade Moodle from 2.6 version to current version

by Ken Task -
Picture of Particularly helpful Moodlers

First ... who is service provider?  and what operating system?

Makes a difference ... share host or standalone ... Linux (which flavor) or Windows?

Service provider is correct ... it's more a 'march' through versions ... do not 'hyperjump' from 2.6 to 3.2.

Example: your first 'hop' is to 2.7.highest.   There you will have to check themes, update assignments, and check Quiz Upgrade helper as well.   If one doesn't take of those at this stage, some of the tools for upgrading parts/pieces disappear in future versions upwards.

Also ... check what is required to run each version ... what version of PHP ... what verson of MySQL.

Start with https://docs.moodle.org/26/en/Upgrading

https://docs.moodle.org/26/en/Upgrading

https://docs.moodle.org/27/en/Upgrading

https://docs.moodle.org/29/en/Upgrading

https://docs.moodle.org/30/en/Upgrading

https://docs.moodle.org/32/en/Upgrading

Easiest way to 'march' is git ... that is dependent upon the questions asked above.

https://docs.moodle.org/27/en/Git_for_Administrators

Uhhh .... I've 'marched' quite a few. :\

'spirit of sharing', Ken


In reply to Sonia P

Re: Upgrade Moodle from 2.6 version to current version

by Rahul Rai -

Hi Sonia 

Don't upgrade 2.6 to 3.3. It need to many thing, so please.

It is better to upgrade one by one. 

Upgrade moodle 2.6 than 2.9 than 3.0 than 3.1 than 3.2 than 3.3

In reply to Rahul Rai

Re: Upgrade Moodle from 2.6 version to current version

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

This is incorrect information sad

If you are running 2.6 you MUST go to 2.7. You cannot upgrade any higher. 

After that you can upgrade to 3.3. Make sure you take backups at each stage. 

Once you are at 2.7 there is no advantage in taking small steps (unless you have specific problems that need to be resolved). You are running exactly the same upgrade code - in fact the newer version may have additional bug fixes in the upgrade scripts that earlier versions do not. 

Average of ratings: Useful (2)
In reply to Howard Miller

Re: Upgrade Moodle from 2.6 version to current version

by Rahul Rai -

Hi Howard

Thank you, correct me, i forget to write  2.7.


In reply to Sonia P

Re: Upgrade Moodle from 2.6 version to current version

by Ken Task -
Picture of Particularly helpful Moodlers

If hyperjumping, do check plugins currently installed for compatibility in the stops along the way and desired destination version.

An incompatible plugin (including theme), not part of core, can stop even a git upgrade dead in it's tracks.

Also, check version of PHP and version of DB server (+ engine/collation/format) requirements.

'spirit of sharing', Ken

Average of ratings: Useful (1)
In reply to Ken Task

Re: Upgrade Moodle from 2.6 version to current version

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Yes - good point. It's possible to get into a nasty situation with PHP versions as the requirement changed between your start and end versions of Moodle. 

The simplest thing is probably to make sure you are running PHP 5.6 but do check the release notes carefully.