From owner-freebsd-questions@FreeBSD.ORG Wed Sep 12 07:23:21 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 1FD6E16A418 for ; Wed, 12 Sep 2007 07:23:21 +0000 (UTC) (envelope-from zszalbot@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.freebsd.org (Postfix) with ESMTP id CBEC813C457 for ; Wed, 12 Sep 2007 07:23:20 +0000 (UTC) (envelope-from zszalbot@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so243520pyb for ; Wed, 12 Sep 2007 00:23:19 -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=KeqPe1U14GaeWoxui7G7ef4gu16B2TQ+JCYBxt75hkc=; b=jEe8VrJo2+8LpGdhyC3+bDqF8qkSoH3wiDHW5KVsK9a2Taxe/y8ath5gnSu/1EpHVDXe1oUztKzo9GnqGodqs07g3kwyzSPylyy8T5NWSFu7aPjoXRFhokCQU0tDYG6KhIkzEXGpbntz6noi5HGF3int2s31uLIVzNimrPFFrb0= 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=BB53MJJNKQ2vV7RHtF4xEYi6vzT22DsLNmvkJYjBgklu8wPpNjIsZu4sHEudlWdeSUXzLTH3U85CrLulwOHS7EO9pyQxexoe81Mim4oSmPTCh/l2BEw8xYcqklnYw/g4JOzV42U+RUeKjH5KCr3fEqdDwWdjjqfpdFUwuv9f0tY= Received: by 10.65.103.14 with SMTP id f14mr14019328qbm.1189581799474; Wed, 12 Sep 2007 00:23:19 -0700 (PDT) Received: by 10.65.248.20 with HTTP; Wed, 12 Sep 2007 00:23:19 -0700 (PDT) Message-ID: <94136a2c0709120023r3d6d6ea4s41356861e9f6563e@mail.gmail.com> Date: Wed, 12 Sep 2007 09:23:19 +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: <20070911234241.B2CAF16A4AC@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 07:23:21 -0000 Hi there again, 2007/9/12, Ian Smith : > On Tue, 11 Sep 2007 19:19:32 +0200 Zbigniew Szalbot wrote: > > > I decided to upgrade my home machine to php5.2.3 from 4.4.7. All went > > fine. I had one error about hash extension already loaded which I > > solved by deleting a duplicated entry from extensions.ini. The curious > > thing is that once apache has been restarted, if I want to load a > > website which resides on this box, it behaves as if no php was enabled > > in apache. In other words I can see the directory content (files > > present in a given directory) despite index.php being there. What is > > more strange is that when I click reload, the website is indeed loaded > > into browser! So when I first type an URL, it shows directory content. > > After hitting reload in browser (tested with both FF and IE), the page > > is shown. > > Except for the reload bit - perhaps I never tried that - I've been here. > > > My first thought was checking httpd.conf > > > > > > DirectoryIndex index.php index.php3 index.html > > > > > > and also > > AddType application/x-tar .tgz > > AddType application/x-httpd-php .php > > AddType application/x-httpd-php-source .phps > > The latter AddTypes should be within section? No, it wasn't in there but I moved it to this section. There is no difference. I cannot start apache. > > index.php3 there looks a bit odd, unless you're supporting some old > .php3 scripts? If you're then still having trouble, show us the whole > .. section? > > For a php4 to php5 update, make sure you also have such as: > > #LoadModule php4_module libexec/apache/libphp4.so > LoadModule php5_module libexec/apache/libphp5.so > > and > > #AddModule mod_php4.c > AddModule mod_php5.c > > 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) 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. Thank you! Zbigniew Szalbot