This post is very old and likely contains information that is no longer accurate and links which no longer work. Proceed with caution.
As I wrote about previously, I have had problems with Apache and PHP crashing due to various PHP Extensions. I have come upon another combination that triggers a problem, but after investigating it a little I see that it’s been reported before, and nobody wants to fix it. PHP blames PHP accelerator systems, and Zend claims it’s a shared memory configuration problem (it isn’t – at least on my system)
The error happens whenever attempting a graceful restart of Apache via
[notice] seg fault or similar nasty error detected in the parent process
- Apache 2.2.4
- PHP 5.2.1
- Zend Optimizer 3.2.8
- Some interaction between the Zend Optimizer being loaded along with the PHP
If I disable one or the other, the crash goes away. Since this particular
installation does not require the
pspell module, I disabled it and things have
been stable ever since.
I did follow Zend’s recommendations for increasing certain shared memory
tunables on FreeBSD, as well as trying to recompile everything involved. For
more information on shared memory tuning check the FreeBSD man page
as well as this Zend Knowledge Base article.
Note that certain sysctl settings may only be modified at boot time via
More information to come if I can find anything else…
- Update 11/21/2007:
- I found that in more recent version of PHP (Around 5.2.4-5.2.5) having
extensions.iniwill result in crashes when an httpd process is stopped/killed. Moving pspell anywhere after spl will clear this up (so far…).