Run Moodle in localhost mode

Freeman2015 Posted messages 2 Status Membre -  
mamiemando Posted messages 33541 Registration date   Status Modérateur Last intervention   -
Hello!

I would like to install Moodle in localhost mode. I completed the installation on Ubuntu until the end. When I tried to launch localhost mode, either with 127.0.0.1 or http://localhost, I cannot see the Moodle page that I should have and instead, I receive a message saying that Firefox cannot access the web due to a firewall. Can someone come to my rescue?
Thanks in advance.

2 réponses

mamiemando Posted messages 33541 Registration date   Status Modérateur Last intervention   7 935
 
Hello

I’m not quite sure what you mean by “installing Moodle in localhost mode,” I presume what you want to say is, “I would like to access the web interface provided by Moodle and accessible via localhost”?

In that case:

1) You need to make sure you have installed a web server (for example, apache2). From what I’ve seen, Moodle also requires a mysql server and php. You can, for example, follow this tutorial:
https://www.mistra.fr/tutoriel-linux-serveur-web-apache2.html

2) You need to check how Moodle’s virtual host is configured (more specifically, how to access it), to figure out what to type in your browser.

Good luck
0
Freeman2015 Posted messages 2 Status Membre
 
Merci mamimando for your response. That's exactly what I mean. I installed Apache (for example, when I run sudo ufw app list, apache2 appears). I will follow your instructions and update you afterward. Once again, thank you for your help.
0
mamiemando Posted messages 33541 Registration date   Status Modérateur Last intervention   7 935
 
Ok, if you are stuck, feel free to copy and paste the Moodle virtual host configuration.
0