Hi ,
Would you please tell us that how to upgrade Moodle 3.6 to latest version. and also please tell us about upgrade process.
Thanks.
V odpovědi na MSHP MATHURA
Re: How to upgrade Moodle version 3.6 to Moodle latest version
autor Visvanath Ratnaweera -
All about upgrading is in, where else, in Upgrading.
Well, coming from Moodle 3.6 it is a bit more complicated than that, you have to decide on a march route. This chart provides the necessary information: http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases.
I know, Moodle 3.6 is not there. You have to get its bearings from https://moodledev.io/general/releases/3.6.
Well, coming from Moodle 3.6 it is a bit more complicated than that, you have to decide on a march route. This chart provides the necessary information: http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases.
I know, Moodle 3.6 is not there. You have to get its bearings from https://moodledev.io/general/releases/3.6.
V odpovědi na MSHP MATHURA
Re: How to upgrade Moodle version 3.6 to Moodle latest version
autor Ken Task -
In addition to what Mr. V has already provided ...
Login to your site as admin level.
Go to Server -> Environment check. Update component.
Use the drop down list of Moodle version and pick higher versions of Moodle.
See what it says on every page. You will probably have to upgrade your PHP version + extensions as well as MySQL/MariaDB server version.
Go to Server -> Environment check. Update component.
Use the drop down list of Moodle version and pick higher versions of Moodle.
See what it says on every page. You will probably have to upgrade your PHP version + extensions as well as MySQL/MariaDB server version.
Resource References:
http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases
https://moodledev.io/general/releases
https://docs.moodle.org/403/en/Upgrading
How one actually performs what in your case will be a 'march',
depends upon hosting (where/with what provider) and platform (operating system) and access levels to hosting/operating system.
'SoS', Ken
V odpovědi na MSHP MATHURA
Re: How to upgrade Moodle version 3.6 to Moodle latest version
autor James Steerpike -
I have a question on the march.
Going from 3.6 to 4.03, is it necessary to run Moodle at intermediate steps? Could you take a server with the php and database required for Moodle 3.6 (PHP 7.0, MariaDB 5.5.31), update the server to 4.03 level (PHP 8.0, MariaDB 10.6.7) and step Moodle up to 3.11 and then on to 4.03? My assumption has always been the upgrade process would require a 3.11 compatible server (PHP 7.3, MariaDB 10.2.29) as an interim step so you can trigger the update process for 3.11.
This is a general question. Let's take an upgrade from 3.9 LTS to 3.11 as an example.
Say, the 3.9 LTS was running on PHP 7.2. The march shows that PHP 7.3 not good enough for Moodle 3.11. It needs PHP 7.3-8.0.
Still you can upgrade the code to Moodle 3.11. When you try to run it, Moodle detects the new version (the old version was recorded in the database) and takes you to the upgrade script. But the upgrade script of 3.11 will detect the insufficient PHP and refuse to upgrade. Nothing breaks - unless you are one of those clever people who change the code to bypass this test. :-?
Now you upgrade the PHP to anything 7.3-8.0 and retry. This time you can continue with the upgrade.
Note that this game could be played because "Earliest from" column for 3.11 shows 3.6 (or newer).
V odpovědi na James Steerpike
Re: How to upgrade Moodle version 3.6 to Moodle latest version
autor Emma Richardson -
Interesting question...My thought is that you would have to run the update to update the database in each step so in that case, you would have to "run moodle". It is also advisable to make sure that everything is working correctly before jumping to the next step.
V odpovědi na Emma Richardson
Re: How to upgrade Moodle version 3.6 to Moodle latest version
autor James Steerpike -
Just strikes me as strange we don't warn the Moodle install will fail if the php and database aren't at the right version and it is halfway through an upgrade before you will be told your server also needs an upgrade.
There is a link to the Release Notes up to the 3.11 documentation, after that the release notes are placeholders without links and the required server information is found in the Developer documentation. The blog is not referenced anywhere in Moodle docs so the Download page is the only place that a new installer is going to see the php and database version required before starting the upgrade.
V odpovědi na James Steerpike
Re: How to upgrade Moodle version 3.6 to Moodle latest version
autor Ken Task -
@James ... ahhh... but ... there is always one of those 'buts'!
If OP goes to Admin - Server - Environment check and updates the component.
Then selects each higher version of moodle, the resulting page for that version will show php version and MySQL/MariaDB requirements.
Yeah, OP has to select each higher version to see ... 3.6 -> 4.0 - that's quite a few selections in that drop down moodle version list, but one can jot down notepad/textedit notes as to when to do what - there's the 'road map' for the 'march' ... however one will do 'the march'!
May as well add 2 cents ...
On the notifications screen where one sees the 'nag' about keeping moodle up to date there are links to newer versions available ... newer version of Moodle provides links to download which suggest to the un-aware OP that they could download any version of moodle code for the upgrade. We know that's not true.
I had proposed at one time, that the buttons change ... for every higher version of moodle where PHP and/or MySQL/MariaDB are correct versions ... a download button.
Somewhere in this forums, I uploaded that proposed screen change.
For every higher version of moodle where PHP and/or MySQL/MariaDB should be upgraded before attempting a version of Moodle, a link to the OP's own server environment check.
Presently, if I think OP's are far enough along to handle their own upgrades, I try to help out with reminders on the 'Update Notifications' screen with a reminder to "Check Server environment' that links to the OP's own server's environment check (old one below as you can see that was version 3.2 at the time (was done by editing en lang pack)
(kinda like tell 'em, tell 'em what you told 'em, then tell 'em again!)

Anyhoo ... am not disagreeing with you and do believe there could be some improvements in providing the admin user of a site with more info in obvious places that would be easier than having to drill down in moodle's online collection of stuff.
While Mr. V's chart is a good resources - he has to maintain ... and as you pointed out it's not mentioned! (Hmmmmmm).
LIke I said ... my 2 cents! :|
'SoS', Ken
V odpovědi na Ken Task
Re: How to upgrade Moodle version 3.6 to Moodle latest version
autor James Steerpike -
You are right, I had completely forgotten about the environment page in Moodle. Great for finding the minimum version but the maximum version could also be useful information. If you are doing a 3.11 upgrade, I think you could go to php 8 and step up to 4.3 without a further server upgrade. This is where the blog page is really helpful in planning. However, I find it easier with Ubuntu to use
do-release-upgrade
with git and step my standard versions up to the next Ubuntu version rather than update only the php and database. To each their own.
V odpovědi na James Steerpike
Re: How to upgrade Moodle version 3.6 to Moodle latest version
autor Ken Task -
And the *spin* goes on ... and on ... and on!
"...I find it easier with Ubuntu to use
do-release-upgrade
with git"Yes, that would be a way, IF .... *IF* one had a true *Ubuntu* VPS with root access and the 'courage' to do a release upgrade.
But ... there's that word again ... how many folks of the 140+ thousand that have a moodle, host with a provider that have a Ubuntu VPS and root access to do a release upgrade? I certainly don't know. But maybe Moodle.org could help ... at least with a graph of which OS is the 'most popular'. That info could be shared even if the site doesn't want their information published when they register their site with Moodle.org.
Could also provide most popular hosting ... (but doubt that will happen).
For others ... don't get the impression that you must upgrade your operating system to get higher versions of PHP/MySQL/MariaDB to upgrade your Moodle.
Maybe you should respond to this posting:
Yeah ... to each their own ... within their own means, budget, courage, and ... the spin goes on!! 
'SoS', Ken
V odpovědi na James Steerpike
Re: How to upgrade Moodle version 3.6 to Moodle latest version
autor Ken Task -
Know your distro? So each Ubuntu distro of a higher version will always have a higher/compatible PHP/MySQL/MariaDB version for Moodle?
Don't think Ubuntu consults with Moodle HQ concerning versions of PHP nor of MySQL/MariaDB. Don't think Moodle HQ consults with any distro either.
Last announcement in Integration has an item for deciding requirements for the next release of Moodle 4.4.
More to the 'spin' ...
'SoS', Ken
V odpovědi na Ken Task
Re: How to upgrade Moodle version 3.6 to Moodle latest version
autor James Steerpike -
I have a script that interrogates the PHP and database version after I run apt without version numbers for PHP and MySQL and with the information from Mr V's blog, gives a choice of compatible Moodle versions to install. Ubuntu 18 is my normal start point and my choices are Moodle 3.5 to 3.9. The script can install a LAMP version of any Moodle from 3.5 to 4.2, always using a standard Ubuntu image from 18 up to 23. Using git and Ubuntu updates are easy as there are no extra repos and I trust the Ubuntu team to provide a stable update path. I also have the perhaps misguided notion my stock standard Ubuntu will be kept up to date with daily checks for Ubuntu security updates while extra repos will not be automatically patched.
Just my little project.
V odpovědi na James Steerpike
Re: How to upgrade Moodle version 3.6 to Moodle latest version
autor Ken Task -
Your 'little project' sounds like it could compete with or surpass Softac and like apps.
Might be able to monetize it as well!
'SoS', Ken
V odpovědi na Ken Task
Re: How to upgrade Moodle version 3.6 to Moodle latest version
autor James Steerpike -
I don't think so. I find to learn something you need a goal and breaking the installation process into a dozen or more self contained functions which can be built, tested and then replaced to run with a different distro, webserver and database for different purposes is an excellent way to learn bash scripting. Being able to create different Moodles quickly and easily to play with performance and updates is all I want to do.
V odpovědi na James Steerpike
Re: How to upgrade Moodle version 3.6 to Moodle latest version
autor Ken Task -
Wish list ...
The downloads for moodle (.tgz or .zip) come with the hidden git directories and files.
A support account is created (id 3) that has login/pass and a support key that OP of server can change - like a passphrase.
OP could then request support and provide person contacted with login/pass to site as well as support key.
The downloads for moodle (.tgz or .zip) come with the hidden git directories and files.
An Admin tool be developed for web based Terminal ... inside moodle - as an admin add-on.
A support account is created (id 3) that has login/pass and a support key that OP of server can change - like a passphrase.
That is auto created like Guest account but login/pass and support key can be changed.
Support person must provide the support key. That person is then auto logged onto the Web based Terminal in the account root.
Things the above could not do ... but might ... change my.cnf conf. Add a proper/correct cron job setup.
Might actually be able to install moosh and MySQLTuner.
'SoS', Ken