Moodle 4.2 installer package (Windows) - php_extension sodium missing

Moodle 4.2 installer package (Windows) - php_extension sodium missing

by Stephan Behrens -
Number of replies: 4

I cannot use the current Moodle installer package for Windows:


Can anyone confirm this problem?

Average of ratings: -
In reply to Stephan Behrens

Re: Moodle 4.2 installer package (Windows) - php_extension sodium missing

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers
Perhaps you made it farther than I have made it. It appears that Moodle 4.2 requires a database version (MySQL 8.0 or MariaDB 10.6.7) that is not yet available for either MAMP or XAMPP. I wonder how these installers get around that requirement.

In your installation, what database are you running?
In reply to Rick Jerz

Re: Moodle 4.2 installer package (Windows) - php_extension sodium missing

by Stephan Behrens -
I am using the windows installer packge from moodle.org:
https://download.moodle.org/windows/

They are using a slightly adapted XAMPP environment. The php sodium extension is indeed missing at the apache/bin folder. You can download php version 8.1.17 (this version is used for the current Moodle 4.2 installer package) here:
https://windows.php.net/downloads/releases/archives/

Then you have to copy libsodium.dll to the folder apache/bin. After that, you have XAMPP running with Moodle 4.2.
In reply to Stephan Behrens

Re: Moodle 4.2 installer package (Windows) - php_extension sodium missing

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers
Yes, I have been adding some thoughts to this tracker item, https://tracker.moodle.org/browse/MDL-74905.

It appears that the producers of the Moodle installers are still using earlier versions of the database, and somewhat "tricking" Moodle by editing the admin/environment.xml file.
In reply to Rick Jerz

Re: Moodle 4.2 installer package (Windows) - php_extension sodium missing

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers
They do that a lot which is why we tell people not to use them....