Hello community! First of all, thank you very much for reading. I did the whole process to install moodle through Git, and all the folders in the moodle directory are ready. I ran Xampp and when accessing 127.0.0.1/moodle to install it, I can't pass the language selection. After I choose my language, the installation shows me a blank page with the error "ERR_CONNECTION_RESET" and some suggestions related to the firewall, etc. I've tried several times, even with different browsers just in case, and I can't complete the installation process. Any idea what could be happening? Thank you very much in advance!
You can force debugging on by adding these lines to your config.php file, before the "require_once(dirname(FILE) . '/lib/setup.php');" line:
$CFG->debug = E_ALL | E_STRICT; $CFG->debugdisplay = 1; ini_set('display_startup_errors', 1); ini_set('display_errors', 1);
If the installation process didnt get as far as creating the config.php file, you can copy config-dist.php to config.php and add the appropriate information to the top section and then uncomment the relevant lines in the debugging section.
Thank you very much for your reply, Jon! I tried what you say but it shows nothing, which is very weird. Just a blank page and the same firewall suggestions (not even the language options).
Ok, edit your php.ini file and add:
intl.default_locale = en_utf8
And increase the max_execution_time - I think it’s set to 30 by default.
max_execution_time = 300
Did you download XAMPP via the Moodle downloads page or somewhere else? The Connection Refused error is a generic message when the browser can’t connect to the server. Unfortunately, that could be for a whole range of reasons. XAMPP is ok but can be a pain! Are you running it on Windows or a Mac?
Apparently the previous installation was corrupt and that's why I couldn't install Moodle. Now it works like a charm, thank you very much for all your help and support!
I might be backstepping with these few questions.
1) Are you on a PC or a Mac?
2) What is your OS? (PC = Windows 10, Windows 7, etc.? Mac = Mojave, etc.?)
3) Are you running Skype (on a PC)?
A screenshot of your error message might help.
Oops, Miguel, your most recent post beat me by a few seconds. It appears that you are up and running. My guess is that you are on a PC with Windows 10, right?
Hi Rick, thank you very much for your message and your kindness. I forgot to answer that question to Jon too: yes, I'm running Windows 10 Pro. And yes, Xampp can be a massive pain... but I've been using it for so many years that it's hard for me to just leave it haha. Imagine when I must enable the extensions to install moodle (intl, opcache.enable, etc etc)... I must edit line by line Anyway, thank you very much for your help!
Okay. Just so that you know, I had success with a slightly earlier version of XAMPP running in Windows10 on a virtual PC (on my Mac.) I actually thought it was pretty good. However, for me, I prefer running MAMP on my Mac because I don't have to start up my virtual PC. XAMPP on the Mac was missing the intl php extension, and I am not smart enough to figure out how to get it to work. But the intl php extension did work on the PC version of XAMPP.
That's very good to know! Well, I never had a Mac, so I wouldn't know what to tell you. But... in Xampp for PC, you only have to edit the php.ini file that is in C:\xampp\php, you open it with notepad and with the search option you look for "intl". You will find this line of code:
Then just remove the semicolon to enable the extension, and save the changes. The same is for opcache.enable and the rest of the php extensions. However, I think it's easier with Wamp, because you only have to check or uncheck the php extensions, but the environment is less friendly (and in some desktops it runs a bit slower). Kind regards!
Yep, this is what I do on my server, too. But in XAMPP for the Mac, this simple fix doesn't work.
Actually, I have posted this issue here on Moodle.org and got a lot of good advice. The best advice was from Ken who gave me the instructions on how to recompile php. I just haven't figured out how to do this, yet.