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 diff
I had this same problem. Copying dll's didn't fix it. So I looked around some more and found this thread with the answer that worked for me. Why does my XAMPP Apache service keep restarting?
In my Nvidia control panel I didn't see the FIrstPacket settings initially, so I uninstalled the Nvidia ForceWare Network Access Manager, then reinstalled it through the Nvidia drivers. After the restart the FirstPacket settings were visible and I made sure it was disabled, then everything worked.
I just had this problem for a while, apache restarted in every 5-15 minutes. My server serves a lot of sites and a portal with a big traffic, I programmed that portal and I just figured it out that the get_browser() function gives a memory error sometimes (depends on the agent). I refreshed the browscap.ini, no effect, the restarting still happens but as far as I removed to use this function, the apache didn't restart anymore. I use PHP 5.2.6 with Apache 2.0.5x I hope this helps for some other people too.
It is a problem with a problematic mix of mysql DLLs. See here for a solution: http://www.java-samples.com/showtutorial.php?tutorialid=1050
Copying dlls into system32 is not the best thing to do, so I suggest to install apache+php+mysql properly, rather than copy files into system32, because once the dlls are there - they will be loaded instead of newer version dlls, in a future update.
I had the problem - and after checking my folders, I realized I did not have the php5apache.dll in my php directory. So I tried copying it from the Win32 folder - and it has improved matters considerably (I won't hold my breath yet :))
So my php directory did not have libmysql.dll in it this seems to have resolved the problem.
I also added this to the win32 directory and the apache bin directory
This is an openssl_public_encrypt() function in my case.