PHP / Apache bus error
Peter Risdon
peter at circlesquared.com
Tue Mar 22 08:46:48 PST 2005
On Tue, 2005-03-22 at 09:22 -0700, Tom Vilot wrote:
> I've done a lot of snooping around Google to figure this out. I've come
> to the conclusion that PHP just plain sucks ;c)
>
> I am fairly consistently getting bus errors in Apache when I use PHP (or
> at least, I'm fairly sure it is due to PHP).
One way to find out is to comment out the
LoadModule php4_module libexec/apache/libphp4.so
and
AddModule mod_php4.c
in httpd.conf and restart apache. I think you need to make sure this is
the source of the problem before getting too involved in trying to fix
it.
But then, I've found most apache/php errors actually derive from some
php extension and this can be traced by a process of elimination. It's
often then a dependency of the extension that has been updated, or
something.
> Entries like:
>
> ... [notice] child pid 70121 exit signal Segmentation fault (11)
>
> Or if I run Apache in stand-alone mode, I will often simply get:
>
> Bus Error
>
> and it exits immediately.
>
> I am running php4-4.3.10_2 and apache+mod_ssl-1.3.33+2.8.22 on
> FreeBSD 4.9 RELEASE (Generic kernel).
>
> Is this something that will clear up if I move to FreeBSD 5.3? Or is
> there some other known work-around? I ask because I have a 5.3 box here
> at home that does not seem to be exhibiting this behavior.
Yes, but going to 4.11 should fix it as well.
Peter.
More information about the freebsd-questions
mailing list