Moodle PHP status 3221225477 error

Moodle PHP status 3221225477 error

by Dan Vaughan -
Number of replies: 7

so im running

PHP Version 5.3.6
Apache/2.2.19 (Win32) PHP/5.3.6
moodle 2.3.1

on windows


apache error log reads

[Tue Sep 11 14:46:38 2012] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Tue Sep 11 14:46:39 2012] [notice] Apache/2.2.19 (Win32) PHP/5.3.6 configured -- resuming normal operations
[Tue Sep 11 14:46:39 2012] [notice] Server built: May 21 2011 17:38:08
[Tue Sep 11 14:46:39 2012] [notice] Parent: Created child process 4268
[Tue Sep 11 14:46:39 2012] [debug] mpm_winnt.c(477): Parent: Sent the scoreboard to the child
[Tue Sep 11 14:46:40 2012] [notice] Child 4268: Child process is running
[Tue Sep 11 14:46:40 2012] [debug] mpm_winnt.c(398): Child 4268: Retrieved our scoreboard from the parent.
[Tue Sep 11 14:46:40 2012] [info] Parent: Duplicating socket 384 and sending it to child process 4268

i have spent 2 day trawling the internet trying to find a solution to this as this is happening as much as 3 times a minute im loosing my patience with the whole thing pleasse someone save me from madnes

Average of ratings: -
In reply to Dan Vaughan

Re: Moodle PHP status 3221225477 error

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
In reply to Howard Miller

Re: Moodle PHP status 3221225477 error

by Dan Vaughan -

hi i spotted this however my version of php does not include the suggested file

In reply to Dan Vaughan

Re: Moodle PHP status 3221225477 error

by Dan Vaughan -

maybe i should make it clear that appache starts and runs fine until people start accessing moodle then the more people accesising moodle the more regualar the restart.


exstensions ar ein the estensions folder and appear tobe running fine

In reply to Dan Vaughan

Re: Moodle PHP status 3221225477 error

by Ryan Smith -

These errors have nothing to do with mis-placed DLLs.

These errors happen on Windows servers running PHP as an Apache module. The servers are configured correctly, but you will see these random crashes when server load increases.

We had this problem two summers ago when we were upgrading from Moodle 1.9.x to 2.0. After the upgrade we would see these crashes when around 25 or so people were logged-in to our Moodle website.

We never could track down the problem at the time (and I tried countless of these "make sure the paths are correct" fixes), but in order to fix it we switched from using the thread safe PHP as an Apache module to using the NTS PHP via mod_fcgid. We are running Moodle 2.3.2 now with no problems. 

Since then, I've been researching the problem more and I'm wondering if it might be related to the Apache stack size being 1 MB in Windows vs. 8 MB in Linux.

You can try to set your Apache thread stack size to 8 MB by putting:

ThreadStackSize 8388608

in your httpd.conf file and restarting Apache. If you get an error that it couldn't allocate enough threads, you'll need to lower your ThreadsPerChild value. 

Average of ratings: Useful (1)
In reply to Ryan Smith

Re: Moodle PHP status 3221225477 error

by Dan Vaughan -

hey i tried the ThreadStackSize fix but to no availe still crashing so i think im going to move over to the none threadsafe php and mod_fcgid was this an easy setup? 

In reply to Dan Vaughan

Re: Moodle PHP status 3221225477 error

by Dan Vaughan -

i gave up trying to fixe my instalation and started again using iis php 5.3.17 and mysql all seem well so far have a couple of teething problems but im sure ill get them fixed.