Fix Various Apache crashes on Windows

Some random crashes you may face on your Windows development machine.

1. Apache keep crashing every few hundred requests

In Apache error.log:

 AH00428: Parent: child process 6096 exited with status 3221226356 — Restarting.

Reason:

Apache’s default stack size is too small

Solution:

Add the following setting to httpd.conf

Reference: http://www.codexpedia.com/apache-server/parent-child-process-exited-with-status-3221225725-restarting-on-xamp-apache/

Alternative Workaround: Use fastcgi instead of Apache module:

See: https://blog.tiger-workshop.com/wamp-development-machine-setup-note/

2. Apache random stop responding with Internet Explorer

Reason:

VMWare/VirtualBox network driver do not handle AcceptEx() correctly

Solution:

Add the following setting to httpd.conf

Reference: https://stijndewitt.com/2014/01/10/apache-hangs-ie11/

3. Apache still crashing with status 3221226356

Windows + PHP as Apache module is affected by this and other bugs that cause problems.
Switch to PHP as FCGI setup solve many problems, especially for server running Laravel.

1. Download a “non-thread safe” version of PHP

2. Create C:\Apache\conf\extra\httpd-php7.conf

Edit C:\Apache\conf\httpd.conf, Add

Leave a Reply

Your email address will not be published.