I'm using PHP5, CodeIgniter and Apache. The localhost php pages were loading fine and then suddenly they started crashing Apache.
The web pages seem to get to different stages of loading when apache crashes.
The only interesting line in the Apache error log file says :
[notice] Parent: child process exited with status 3221225477 -- Restarting.
There is a lot of discussion of this issue on the web but it seems there is no one solution, different people have described different solutions that worked for their system.
Suggestions Appreciated.
This problem often happens in Windows because of smaller Apache’s default stack size. And it usually happens when working with php code that allocates a lot of stacks.
To solve this issue, add the following at the end of apache config file, httpd.conf
<IfModule mpm_winnt_module>
ThreadStackSize 8888888
</IfModule>
AND restart apache. i take this solution from this site.
I found a solution that worked for me.
I copied the following two files from my PHP directory to the Win32 directory and the errors stopped : php5apache.dll, libmysql.dll.
So even though these files should have been found in the PHP directory under certain circumstances they needed to be in the system dir
In my case it was the php extension APC (php_apc.dll, 3.1.10-5.4-vc9-x86, threadsafe), which caused the error.
I used XAMPP 1.8.2 with PHP 5.4.19 and Apache 2.4.4
Since it could be caused by another extension as well, it might be a good starting point to restore the original php.ini from the xampp distribution. If this one works well, try to change it line by line to your desired configuration (starting with the extension list).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With