From owner-freebsd-questions@FreeBSD.ORG Wed Sep 12 18:51:54 2007 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 CBB9E16A419 for ; Wed, 12 Sep 2007 18:51:54 +0000 (UTC) (envelope-from zszalbot@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.249]) by mx1.freebsd.org (Postfix) with ESMTP id 2073013C474 for ; Wed, 12 Sep 2007 18:51:53 +0000 (UTC) (envelope-from zszalbot@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so53248anc for ; Wed, 12 Sep 2007 11:51:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=u1Dyq0n/ptI55m4lrlhgzu17j5dj43MZwg/mvjFnnyY=; b=LGKb1AIrQcOewlNLiL079ONoUQN8Cn44WOi7lAfWEg4A5RjE7+hpub4YiDYov5UP/01PUEVrrjCg4W2iKbyH3uxqHD1LaFokxn2AbMzxjJqAA9PCNEzR/17UcvrTvXkEJWQLEcyJBg5SuhAKUDVhwrSecDSrldN65xzQ07q8fXI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YtmqqAIpSkPdtvyWgdME8njo4XTnGrDAR52Fqp5fJHsajXEjfgaPryNoSOO0pwY9R2z6wS9o1LNqBbsD5xqqNEpByik79ycvJCTl4vcK5e3LoFO6nhAkff6uvN6K/8LafscHSdd5VKJhZ/i3yzKDu0L+VSyltgkUnqZiLDqES9w= Received: by 10.100.132.16 with SMTP id f16mr8822814and.1189623112309; Wed, 12 Sep 2007 11:51:52 -0700 (PDT) Received: by 10.65.248.20 with HTTP; Wed, 12 Sep 2007 11:51:52 -0700 (PDT) Message-ID: <94136a2c0709121151m209ef65ale509038ec1278c30@mail.gmail.com> Date: Wed, 12 Sep 2007 20:51:52 +0200 From: "Zbigniew Szalbot" To: freebsd-questions@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070912120014.1B87016A4C6@hub.freebsd.org> Subject: Re: php5-5.2.3_1 / website behaves as if not enabled in httpd.conf 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: Wed, 12 Sep 2007 18:51:54 -0000 Dear Ian and others, 2007/9/12, Ian Smith : > On Wed, 12 Sep 2007 09:23:19 +0200 Zbigniew Szalbot wrote: > > 2007/9/12, Ian Smith : > > > On Tue, 11 Sep 2007 19:19:32 +0200 Zbigniew Szalbot wrote: > [..] > > No, it wasn't in there but I moved it to this section. There is no > > difference. I cannot start apache. > [..] > > > And check that /usr/local/libexec/apache/libphp5.so exists! > > > > Everything is fine here. But I think now that the problem is not with > > apache but with php. It does not even matter if I do start or > > startssl. In both instances the httpd server dies. The reason I think > > it is php-related is that when I issue php -v I get: > > > > PHP 5.2.3 with Suhosin-Patch 0.9.6.2 (cli) (built: Sep 12 2007 08:59:52) > > Copyright (c) 1997-2007 The PHP Group > > Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies > > Segmentation fault (core dumped) > > Well it's broken for sure if php -v dumps .. and if php cli is broken > most likely the module is too, which may well explain apache crashing .. > > > pkg_info | grep php5 > > php5-5.2.3_1 PHP Scripting Language (Apache Module and CLI) > > > > I do not really feel like upgrading apache (as suggested by someone > > else - thank you by the way) because it is just a home machine on > > which I do not need all the greatest and latest. > > > > If there's nothing obvious that comes to your mind I will try posting > > it on a php list. > > Sorry, I'm on digests here which can take half a day unless you cc me, > so I hope you've made some progress by now .. no, nothing obvious, but: > > I'd be trying to separate these two problems: save configs, comment out > all of the php stuff in httpd.conf and get your upgraded apache up and > running properly first, then refetch / reinstall / reconfigure php5? I commented out all extensions and then brought them in one by one. The one which was causing core dumps was simplexml.so. I had a few others that I had to comment as otherwise they were giving me trouble (because of the simplexml being commented out I guess): pdo.so, pdo_sqlite.so, spl.so, mysqli.so, sqlite.so. I am not really worried about these. I am not really sure if I will ever need them. So fine for the time being. php -v does not produce core dumps and I can start apache. There's only one problem left to be solved - files with php extensions are not really shown in browser until I click RELOAD. Files with html extensions are shown without the need to reload. Thanks for your patience! Zbigniew Szalbot