Date: Tue, 22 Mar 2005 16:46:34 +0000 From: Peter Risdon <peter@circlesquared.com> To: Tom Vilot <tom@vilot.com> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: PHP / Apache bus error Message-ID: <1111509994.751.306.camel@lorna.circlesquared.com> In-Reply-To: <20050322162216.GA1354@vilot.com> References: <20050322162216.GA1354@vilot.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1111509994.751.306.camel>