Moodle upgrade.

Moodle upgrade.

by MSHP MATHURA -
Number of replies: 5
Hi, 
    I want to know that, is it possible to upgrade Moodle version from 3.6 to 4.2 directly?

Thanks in advance.
Average of ratings: -
In reply to MSHP MATHURA

Re: Moodle upgrade.

by Marcos SarLo -
Picture of Particularly helpful Moodlers
According to the following information, you would first have to update to 3.11 and then to 4.2:
http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases

Do these updates on a clone of your production platform, once it works well, just do it on your production platform.

Regards.
Marcos.
Average of ratings: Useful (1)
In reply to Marcos SarLo

Re: Moodle upgrade.

by MSHP MATHURA -
Hi Marcos ,
Thanks for sharing detail
We looked in another forum and there we found that we can upgrade Moodle version 3.6 to 3.9 and than 4.1, is it possible or not. 
1. If not then we can upgrade 3.6 to 3.11 directly without intermediate.
2. If yes then we don't need 3.11 after upgrade 3.6 to .3.9 
 kindly guide us.

Thanks in advance.
In reply to MSHP MATHURA

Re: Moodle upgrade.

by James Steerpike -
It tells you:
You can only upgrade to Moodle 4.3 from Moodle 3.11.8 or later. If upgrading from earlier versions, you must upgrade to 3.11.8 as a first step.
So you  can leap from 3.11.8 to 4.3
But you are only on 3.6 so:
It tells you:
You can only upgrade to Moodle 3.11 from Moodle 3.6 or later
So one step required to 3.11, one more to 4.3.
MOODLE_31117 requires:
PHP 7.3, MariaDB 10.2.29 or MySQL 5.7 or Postgres 9.6 or MSSQL 2017 or Oracle 11.2
So you need to set up a server to run 3.11 and update Moodle code, php and database to the version so you can run Moodle to update and check.
Once 3.11 is achieved, jump to Moodle 4
You don't need the intermediate versions - unless you like making things more difficult, time consuming and error prone.
In reply to MSHP MATHURA

Re: Moodle upgrade.

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
As Marcos pointed out, 3.6 can reach 4.2 through only one intermediate step, 3.11 for example. 

The question is though, whether you really need 4.2. Moodle 4.1 LTS is destined to live longer. See https://moodledev.io/general/releases. If you decide for 4.1 LTS, then I suggest 3.9 LTSas the intermediate step. I prefer LTS versions - their longevity also means they are better tested.
In reply to MSHP MATHURA

Re: Moodle upgrade.

by Ken Task -
Picture of Particularly helpful Moodlers
The 'devils' are in the details.

Suggest you go to Admin -> Server -> Environment check.

Update the component.

Then, using the dropdown pick list for moodle version, set to each higher version and view the results.

RED's you must address *before* attempting to upgrade to version in dropdown pick list.   YELLOW's - check and fix.

There is something not yet covered and should be done to plan your march upwards ... plugins.   3rd party/additional plugins you've installed on your current 3.6.   Do those have a compatible version for your destination version of core moodle?
Theme's are important as moodle theme's are inline ... affects everything ... including access to the admin area of moodle.

Consider forcing the theme to boost for the march by adding a line to config.php to do so:

$CFG->theme='boost';

After the march and site backup, comment out the line by putting a '//' in front of it.   Purge the cache.   Check site.

Space and Site backups ... it's advised you make a site backup just prior to beginning this march.   Another at whatever hop upwards you decide.   A site backup consist minimally of a DB dump, an archive of the moodle code directory, and minimally, moodledata/filedir/.

'SoS', Ken