From owner-freebsd-questions@FreeBSD.ORG Tue Jan 11 20:17:07 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EEEE106564A for ; Tue, 11 Jan 2011 20:17:07 +0000 (UTC) (envelope-from christer@csj.no) Received: from smtp204.iad.emailsrvr.com (smtp204.iad.emailsrvr.com [207.97.245.204]) by mx1.freebsd.org (Postfix) with ESMTP id ECD658FC0C for ; Tue, 11 Jan 2011 20:17:06 +0000 (UTC) Received: from smtp40.relay.iad1a.emailsrvr.com (localhost.localdomain [127.0.0.1]) by smtp40.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id AC50C3508AA for ; Tue, 11 Jan 2011 15:00:35 -0500 (EST) X-SMTPDoctor-Processed: csmtpprox 2.7.4 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp40.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id A8B3C350863 for ; Tue, 11 Jan 2011 15:00:35 -0500 (EST) X-Virus-Scanned: OK Received: from smtp192.mex02.mlsrvr.com (smtp192.mex02.mlsrvr.com [204.232.137.43]) by smtp40.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTPS id E3AEC3508AA for ; Tue, 11 Jan 2011 15:00:34 -0500 (EST) Received: from IAD2MBX02.mex02.mlsrvr.com ([169.254.2.223]) by IAD2HUB06.mex02.mlsrvr.com ([172.23.10.70]) with mapi; Tue, 11 Jan 2011 15:00:33 -0500 From: Christer Solstrand Johannessen To: "freebsd-questions@freebsd.org" Date: Tue, 11 Jan 2011 15:00:29 -0500 Thread-Topic: Which php?? Thread-Index: AcuxxrM8DG25iGUGSyGyM7DFoJ9FCwAA2mew Message-ID: References: <20110110212143.GA8276@thought.org> <4D2B8320.1090501@ifdnrg.com> <20110111164623.GB26859@thought.org> <20110111175631.GA27569@thought.org> <4D2CA063.8080008@pchotshots.com> <20110111193357.GC23123@thought.org> In-Reply-To: <20110111193357.GC23123@thought.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: RE: Which php?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2011 20:17:07 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd- > questions@freebsd.org] On Behalf Of Gary Kline > Sent: 11. januar 2011 20:34 > To: Brad Mettee > Cc: FreeBSD Mailing List > Subject: Re: Which php?? >=20 > On Tue, Jan 11, 2011 at 01:24:35PM -0500, Brad Mettee wrote: > > Gary Kline wrote: > > >On Tue, Jan 11, 2011 at 11:51:41AM -0500, Chris Brennan wrote: > > > > > > > If you execute "php -version" from the shell, what do you get? > > >=20 >=20 > Rats. Now i get a segv...... Last night, no. Ideas? Recompile PHP with debug support. No, seriously. I have had the same problem for years with different versions of PHP, and hours of googling has led me to that answer. Seems that nobody can explain exactly why enabling debug support fixes the problem, but it does. Some boring history: I ran into this problem trying to get Horde/IMP working properly way back i= n 2003. IMP needs some PEAR modules to work, and they refused to install because PEAR needs PHP to work, and got cought on something and segfaulted trying to install the PEAR modules. Reworking the loading order of the PHP extensions seemed to work for some time, but then my changes got lost in one of many PHP upgrades and things got stuffed again. For a while I "solve= d" the problem by uninstalling Horde/IMP, but lately (since 2007-ish) I've hit= this snag every now and then. At some point I just gave up, and then I stumbled across the "enable debug in php and php-extensions" trick, and it's been painless ever since. Speed-wise, I can't tell the difference. I haven't run any real tests becau= se my servers aren't very busy and thus I haven't seen the point, but I'll grant = that on busy servers it may very well affect performance. YMMV. Good luck! - Christer