From owner-freebsd-questions@FreeBSD.ORG Sat Sep 18 10:23:03 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E720816A4CE for ; Sat, 18 Sep 2004 10:23:03 +0000 (GMT) Received: from lorna.circlesquared.com (host217-45-219-85.in-addr.btopenworld.com [217.45.219.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABDCB43D39 for ; Sat, 18 Sep 2004 10:22:58 +0000 (GMT) (envelope-from peter@circlesquared.com) Received: from circlesquared.com (localhost.circlesquared.com [127.0.0.1]) i8IAMfCq059168; Sat, 18 Sep 2004 11:22:42 +0100 (BST) (envelope-from peter@circlesquared.com) Message-ID: <414C0C71.60900@circlesquared.com> Date: Sat, 18 Sep 2004 11:22:41 +0100 From: Peter Risdon User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040611 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Vonleigh Simmons References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Apache13 + mod_php segfault at startup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Sep 2004 10:23:04 -0000 Vonleigh Simmons wrote: > I keep struggling with this without finding a way of fixing it. > Whenever I link in mod_php into httpd.conf (loadmodule and addmodule), > apache fails to start up. I can get it to work by commenting mod_php it > out, starting up apache, then commenting it back in and restarting. If I > restart once more, then it segfaults again. In the logs I occasionally get: > > [notice] child pid 17255 exit signal Segmentation fault (11) > > I've tried installing (and reinstalling) apache13-modssl, > apache13-modperl, reinstalling /usr/ports/www/mod_php4, compiling apache > without expat, checking ldd: > > /usr/local/libexec/apache/libphp4.so: > libcrypt.so.2 => /lib/libcrypt.so.2 (0x28248000) > libm.so.2 => /lib/libm.so.2 (0x28261000) > > /usr/local/libexec/apache/libphp4.so: > libcrypt.so.2 => /lib/libcrypt.so.2 (0x28248000) > libm.so.2 => /lib/libm.so.2 (0x28261000) > > So far nothing has been successful. I even tried installing apache2 > to see if that would work, and although it does for the most part, it > crashes when using the php mail() function. This happens from time to time and I've no idea why, but hitting it with a lump hammer, as follows, seems to fix it for me. 1. deinstall php or mod_php, depending on how you installed it initially 2. manually delete /usr/local/include/php 3. manually delete /usr/local/share/pear if it's there 4. manually delete /usr/local/libexec/apache/libphp4.so if it's still there 5. reinstall php HTH Peter.