Moodle 3.5 installation hangs with Windows and PHP 7.2.6

Moodle 3.5 installation hangs with Windows and PHP 7.2.6

על ידי Samuli Karevaara בתאריך
מספר תגובות: 5

I couldn't find a report about this: I tried to install a test Moodle site on my WAMP-box, and the installation hangs. After the path selection the server gives a "server could not be reached" error. I narrowed this down to the string manager fetching component strings: if no strings are returned then the page loaded, but with the string array returned to get_strings() the site hangs. It took me quite a while to find out how the strings are loaded, but even after this the error didn't make much sense.

With PHP 7.0 the installation went through fine, so this might be an issue with PHP 7.2.6. Just a heads up.

ממוצע דרוגים: -
בתגובה ל: Samuli Karevaara

Re: Moodle 3.5 installation hangs with Windows and PHP 7.2.6

על ידי Matteo Scaramuccia בתאריך
תמונה של Core developers תמונה של Peer reviewers תמונה של Plugin developers

Hi Samuli,
did you try to force the Moodle debugging in the config.php, https://docs.moodle.org/35/en/Debugging#In_config.php, and read about any error from PHP error logs?

TIA,
Matteo

בתגובה ל: Matteo Scaramuccia

Re: Moodle 3.5 installation hangs with Windows and PHP 7.2.6

על ידי Samuli Karevaara בתאריך

This happens during the installation, in a phase where the config.php is not there yet. However, I have

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

at the start of the install.php. PHP error logs don't show anything, and the Apache error logs don't show anything for this either. If I install Moodle 3.5 with PHP 7.0 I can then use it with PHP 7.2, but the install won't go through on WIndows with PHP 7.2.6. This is not a problem for me, I will use an earlier version, just wondering if this happens with other people too.

בתגובה ל: Samuli Karevaara

Re: Moodle 3.5 installation hangs with Windows and PHP 7.2.6

על ידי Darko Miletić בתאריך
בתגובה ל: Darko Miletić

Re: Moodle 3.5 installation hangs with Windows and PHP 7.2.6

על ידי Samuli Karevaara בתאריך

Thanks, this is a valid idea. However, I see that even after the installation the same problem appears "here and there", making PHP 7.2.6 (or 7.2.7, just tested) on my Windows box unsuitable for Moodle. I don't need to run Moodle with this setting, I'm using 7.1.19 at the moment. However, I just wanted to raise awareness about this issue and was asking it this happens with anyone else. It is a combination of things, I'm sure, but low priority for me so I have no need to investigate this any further.

Edit: I originally posted at General Developers forum as I was not asking for help with my installation process, I was wondering about the actual cause of the problem and whether is has something to do with Moodle code.

בתגובה ל: Samuli Karevaara

Re: Moodle 3.5 installation hangs with Windows and PHP 7.2.6

על ידי Mawuli Gatro בתאריך

Hi

1. For WAMP, Click on the local server Apache->httpd.conf

2. For XAMPP go to Cotrol and open Apache->Config->httpd.conf
    
 and add the codes bellow to the end. 

 
<IfModule mpm_winnt_module>
ThreadStackSize 8888888
</IfModule>