Upgrading Moodle to 3.11

Upgrading Moodle to 3.11

Juan Marin發表於
Number of replies: 9

@ken 

What if I am not able to upgrade to 3.11 due to PHP policies of my university server that I am not able to bypass (due to security reasons it is impossible to downgrade PHP version)?

PHP version . The app requires PHP version later than 7.3 but earlier than 7.4.999. Your PHP is 8.2.19. If PHP is not available, ensure that the PHP support is selected for the domain.
It is impossible to me to runt the moodle and extract any backup (of course y can dump my DataBase and copy any folder but not to export a backupfile)
評比平均分數: -
In reply to Juan Marin

Re: Upgrading moodle from 3.10 to 4.3

Visvanath Ratnaweera發表於
Particularly helpful Moodlers的相片 Translators的相片
In other words your Moodle 3.10 is stuck because the system administrators have upgraded PHP to 8.2?

The Moodle versions that run with PHP 8.2 are 4.2, 4.3 and 4.4. But oldest Moodle that can be upgraded to 4.2 and 4.3 (in one go) is 3.11. Moodle 4.4 requires 4.1 LTS. So you are indeed stuck!


The good news is that you can still make a Site backup even if the site is not running. Only the database server must run.

In reply to Visvanath Ratnaweera

Re: Upgrading moodle from 3.10 to 4.3

Howard Miller發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片
Yeh - you may need to migrate the site somewhere you CAN do the upgrade and then migrate it back again. Not ideal but that might be your only choice if your serer admins are intransigent.
In reply to Juan Marin

Re: Upgrading moodle from 3.10 to 4.3

Ken Task發表於
Particularly helpful Moodlers的相片

"PHP version . The app requires PHP version later than 7.3 but earlier than 7.4.999. Your PHP is 8.2.19. If PHP is not available, ensure that the PHP support is selected for the domain."

That looks like a response one would get for a server that had multiple versions of PHP which could be assigned to domains - remotely hosted.   Hosting provider dropped older non-supported versions of PHP.   So no one got a notice from provider?   Maybe in your panel?

If you have command line access the recommended site backup doesn't require you do login to moodle to accomplish that (tar for code and minimal moodledata/filedir/ mysqldump of Moodle DB to an sql file.

You could then download those and restore to a site that had the older PHP version as well as ability to upgrade PHP.    March the moodle upwards.

Then as Howard suggested, backup that site, and replace on server.   And as Howard said ... not the best way ... but a way.

'SoS', Ken

In reply to Ken Task

Re: Upgrading moodle from 3.10 to 4.3

Visvanath Ratnaweera發表於
Particularly helpful Moodlers的相片 Translators的相片
>> "PHP version . The app requires PHP version later than 7.3 but earlier than 7.4.999. Your PHP is 8.2.19. If PHP is not available, ensure that the PHP support is selected for the domain."

I'm wondering too, where do you get this reply? Is it from some sort of a one-click installer or a "panel" or some other thing. The environment check of Moodle, yoursite/admin/environment.php uses a different language:

附件 Screenshot_2024-06-11_07-08-06.png
In reply to Visvanath Ratnaweera

Re: Upgrading moodle from 3.10 to 4.3

Juan Marin發表於

this is the reply for plesk insallation plugin (but it is the same if I use a fresh install form files)

In reply to Juan Marin

Re: Upgrading moodle from 3.10 to 4.3

Visvanath Ratnaweera發表於
Particularly helpful Moodlers的相片 Translators的相片
From 3.10 you can jump straight to 4.1 LTS if the PHP is 7.4, 8.0 or 8.1. REf. http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases. If your IT make a compromise and downgrade PHP to one of them, you can upgrade in one step, without moving to other servers.

Once in 4.1 LTS, you have time till December 2025 to upgrade. Ref. https://moodledev.io/general/releases.

Either way make a Site backup first!

P.S. I don't know whether you can do all that in Plesk or other "panels". They are inferior to the Unix command interface. That is why there is Before you post.. read this..
In reply to Visvanath Ratnaweera

Re: Upgrading moodle from 3.10 to 4.3

Juan Marin發表於
thanks a lot. I am trying
It seems it is working: Información de la versión
Moodle 4.1.11 (Build: 20240610)
In reply to Juan Marin

Re: Upgrading moodle from 3.10 to 4.3

Juan Marin發表於
thanks to all I try to manage the migration locally with XAMP and return to the server after that (for security reasons the owners of the server do not want to downgrade to PHP 7 temporally). I will follow the long path.