Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache error [notice] Parent: child process exited with status 3221225477 -- Restarting

Tags:

php

apache

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.

like image 769
SamH Avatar asked Jul 16 '09 15:07

SamH


3 Answers

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.

like image 195
Mostafa Rostami Avatar answered Nov 17 '22 18:11

Mostafa Rostami


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

like image 26
SamH Avatar answered Nov 17 '22 17:11

SamH


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).

like image 4
SvenT Avatar answered Nov 17 '22 18:11

SvenT