From owner-freebsd-questions@FreeBSD.ORG Thu Sep 13 04:06:33 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 D5BCE16A420 for ; Thu, 13 Sep 2007 04:06:33 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from gaia.nimnet.asn.au (nimbin.lnk.telstra.net [139.130.45.143]) by mx1.freebsd.org (Postfix) with ESMTP id 68C9213C442 for ; Thu, 13 Sep 2007 04:06:31 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (smithi@localhost) by gaia.nimnet.asn.au (8.8.8/8.8.8R1.5) with SMTP id OAA04872; Thu, 13 Sep 2007 14:06:20 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Thu, 13 Sep 2007 14:06:19 +1000 (EST) From: Ian Smith To: Zbigniew Szalbot In-Reply-To: <20070912211348.8DFE616A4C5@hub.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org Subject: Re: php5-5.2.3_1 / website behaves as if not enabled in httpd.conf [SOLVED] 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: Thu, 13 Sep 2007 04:06:33 -0000 On Wed, 12 Sep 2007 22:45:29 +0200 Zbigniew Szalbot wrote: > > > > Actually, maybe my description should be corrected - that is when I > > > > want to access a directory where index.php resides, apache will just > > > > display this directory content. But when I click (not reload) the php > > > > file, page is loaded correctly. Ah right, that makes more sense, now matching my similar experience :) > > > maybe this was already mentioned, but what do you have DirectoryIndex > > > set to? > > > > > > it should look something like: > > > > > > DirectoryIndex index.html index.php > > > > All is fine here. I do have index.php listed. The file httpd.conf came > > almost without any modification (apart from usual php4 replaced php5 > > references during update). > > I was given advice on php list to comment out everything in mod_dir.c > starting from > > > > > and then enter just this: > > > DirectoryIndex index.php index.php3 index.html index.htm > > > Everything now works very well! Thank you all for your patience with me! Cool. That is why I'd asked earlier to see your section; I'd had exactly that same problem last December, which I solved the long way around, adding what I thought was one way the php5 install could/should have done it (which comes to the same thing, in the end): DirectoryIndex index.php index.php3 index.html DirectoryIndex index.php3 index.html DirectoryIndex index.php index.html DirectoryIndex index.html #% 17/12/6 for php5 .. DirectoryIndex index.php index.html Cheers, Ian