Installing moodle 5.1 on Wamp

Installing moodle 5.1 on Wamp

von Yves Maliet -
Anzahl Antworten: 8

Hi everyone,
I'm trying to evaluate how moodle will help me in the context of my non-profit association
I've been trying to install moodle on my laptop for 5 days now.

Technical context

  • Moodle Version : 5.1.1+ (but also tried 5.1.1, 5.0.1, 4.5.8+) download from moodle.org (or git for the older ones)
  • Moodle Theme: didn't have the opportunity to choose one
  • Apache web server: 2.4.58
  • Version PHP : 8.3
  • Database (MariaDB, MySQL, etc.) et version : tried with MySql 8.4.7 and MariaDB 11.2.2
  • Navigateur web : Chrome
  • tier Plugins  installed : none
  • laptop with 16 Gib RAM, 1 Tib SSD, 6 hyperthreaded core + 8 cores (20 virtual processors)
    8 Gib RAM free when starting the install
  • Windows 11 25h2

My stack is a WAMP 3.3.2 with an upgrade of MySql from 8.2.0 to 8.4.7 (tried this after many tries with MariaDB on port 3307)
Php.ini modified to activated sodium + vars = 5000 +  memory_limit = 1024M
I've created a virtual host,

<VirtualHost *:80>
ServerName moodle-tirsub.ffessm.my
DocumentRoot "c:/wamp64/moodle/public"
<Directory  "c:/wamp64/moodle/public/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride None
Require all granted
DirectoryIndex index.php
FallbackResource /r.php
AcceptPathInfo On
</Directory>
</VirtualHost>

I first tried to install with the cli install.php script available in moodle/admin/cli in an "Admin" console
This seems to be working (moodledata filled with some folder and the DB filled with tables) but the site does not respond.

Then I started over I gave I try to the web installer, I followed the configuration steps until the db parameters.
Sometimes I can see the installation report (all the technical components are "OK"). I even had the db filled once after more than 1 hour... but never reach the Admin account configuration page.

I don't modify the config.php after it is generated by either setup process, just tried to activate the router sometimes.

I don't know what else to do or where to find any error info. Nothing in the php logs, nothin in the event

could you please help me ?

Yves

Als Antwort auf Yves Maliet

Installing moodle 5.1 on Wamp

von Rick Jerz -
Nutzerbild von Particularly helpful Moodlers Nutzerbild von Testers
I have never installed WAMP, so I might not be the best at helping you.

>>This seems to be working (moodledata filled with some folder and the DB filled with tables) but the site does not respond.

What do you mean, "does not respond"? Do you get anything, or just a blank screen? You might try sharing a screenshot of what you see.

>> Then I started over I gave I try to the web installer, I followed the configuration steps until the db parameters.

What do you mean, "until the db parameters"? Do you enter anything? Is this page non-responsive? A screenshot might help.

What instructions are you following?

Moodle does provide a downloadable 

I haven't tried this one lately.  Have you?  I think it used to be XAMPP-based.

Als Antwort auf Rick Jerz

Installing moodle 5.1 on Wamp

von Yves Maliet -

Hi Rick,

Thanks a lot for your reply and your suggestions.

What do you mean, "does not respond"? Do you get anything, or just a blank screen? You might try sharing a screenshot of what you see.

Indeed It's totally blank.

What do you mean, "until the db parameters"? Do you enter anything? Is this page non-responsive? A screenshot might help.

Here are a series of Screen shots to let you see what happens.
There are some variations depending on the version I try to install but in the end, the result is alway the same, a blank page.

I can start the installation process the site location the db type selection the db parametersat this point, the first folders in moodledata are created then I go the last step for me more folders, something happened behind the scene the installation process takes as much ressource as it can still waiting the generated config file

I also gave another chance to the Windows bundle (Xampp), but better than my first try, but...
(of course, I've stopped Wamp to free the default ports used by Xampp)

xampp won't save me

Als Antwort auf Yves Maliet

Installing moodle 5.1 on Wamp

von Rick Jerz -
Nutzerbild von Particularly helpful Moodlers Nutzerbild von Testers
Thanks, Yves.

So, you fill in the database stuff, click on "next", and then get the blank screen? (If so, I have never encountered that behavior.)

I haven't tried the "Windows Installer" for quite a while. Several years ago, I installed XAMPP on a PC, then manually installed Moodle. I did get it to work.

Several years ago, I gave a presentation at a MoodleMoot about XAMPP and MAMP. Here is a link to my presentation web page. But be careful, my presentation was not Moodle 5.1. Moodle 5.1 takes a slightly different approach (put the moodle code folder before public_html, and create a link file to the moodle/public/ folder).
 
I have never messed with that "<VirtualHost *:80>" stuff, nor installed Moodle using the cli install.php script.  I just do a manual install.
 
Als Antwort auf Rick Jerz

Installing moodle 5.1 on Wamp

von Yves Maliet -
Hi Rick,
Thanks again for spending time to reply on this "exotic" setup.
I've finally followed the suggestion of Luis: I've kept the PHP and MySql available from WAMP as they were already there but I'm using now IIS with more or less the setup describe here https://docs.moodle.org/501/en/Internet_Information_Services
And it woks as excepted.
Als Antwort auf Yves Maliet

Installing moodle 5.1 on Wamp

von Luis de Vasconcelos -
Nutzerbild von Particularly helpful Moodlers
Installing Moodle on Windows laptops can be a bit of a pain. Especially if you're using Apache instead of IIS - Apache and Windows don't play nicely together. So, I've found that using the Windows Subsystem for Linux to run a local instance of Linux is much better. Then you just use that WSL instance of Linux to run all the components - Apache, MariaDB, PHP, etc. You can even throw in an instance of Redis for caching... Good practice for when you want to roll out a production site.

See: https://docs.moodle.org/311/en/Installation_guide_for_Windows_using_WSL_(Windows_Subsystem_for_Linux)
Als Antwort auf Luis de Vasconcelos

Installing moodle 5.1 on Wamp

von Yves Maliet -
Hi Luis,

Thanks a lot for suggesting IIS, though it seems counterintuitive to me, it works as expected.
I didn't try WSL, when I'll try a linux stack, I think it will be the right time for my association to get a VPS.
Als Antwort auf Yves Maliet

Installing moodle 5.1 on Wamp

von James Steerpike -
Nutzerbild von Particularly helpful Moodlers

Have you considered using the https://school.moodledemo.net/ site to see if Moodle may suit your needs? After setup on WAMP you still have the problem of a blank Moodle and creating a learning site when you are unfamiliar is quite a job. The demo site may be better in showing you what is possible. 

WAMP is not suitable for production and if you do find Moodle useful, a shared host or Linux VPS is a better option. 

Als Antwort auf James Steerpike

Installing moodle 5.1 on Wamp

von Yves Maliet -
Hi James,

Yes, I had a quick look at the demo. But I like to discover building something.
The problem occures mainly during the moodle's setup, before the disclaimer page is shown.
I'm aware that Wamp is only a dev/test plateforme, thanks for the warning.
Finally, I've completed the installation process under IIS