From owner-freebsd-questions@FreeBSD.ORG Sun Jan 13 06:11:08 2008 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 6DEA616A502 for ; Sun, 13 Jan 2008 06:11:08 +0000 (UTC) (envelope-from chris@chrismaness.com) Received: from ns1.kq6up.org (adsl-76-238-148-145.dsl.irvnca.sbcglobal.net [76.238.148.145]) by mx1.freebsd.org (Postfix) with ESMTP id 6A75713C448 for ; Sun, 13 Jan 2008 06:11:08 +0000 (UTC) (envelope-from chris@chrismaness.com) Received: from [192.168.1.2] ([192.168.1.2]) by ns1.kq6up.org (8.13.8/8.13.6) with ESMTP id m0D6Axee028726; Sat, 12 Jan 2008 22:11:00 -0800 (PST) (envelope-from chris@chrismaness.com) Message-ID: <4789AB6E.5050408@chrismaness.com> Date: Sat, 12 Jan 2008 22:10:54 -0800 From: Chris Maness User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Erik Cederstrand , freebsd-questions@freebsd.org References: <47894E87.2020300@chrismaness.com> <47899AFD.80800@cederstrand.dk> In-Reply-To: <47899AFD.80800@cederstrand.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: index.php not automatically displaying 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: Sun, 13 Jan 2008 06:11:08 -0000 Erik Cederstrand wrote: > Chris Maness wrote: >> I have two web servers -- one old, and another I have just set up. I >> have tried to set up the new http.conf the same for php files, but >> the new one does not automatically parse index.php like index.html. >> This works on the old server, but not the new. >> >> Here are what I think the relevant lines in http.conf: >> >> # >> # DirectoryIndex: Name of the file or files to use as a pre-written HTML >> # directory index. Separate multiple entries with spaces. >> # >> >> >> >> DirectoryIndex index.php index.php3 index.html >> >> >> DirectoryIndex index.php3 index.html >> >> >> >> >> DirectoryIndex index.php index.html >> >> >> DirectoryIndex index.html >> >> >> >> >> DirectoryIndex index.php index.html >> >> >> DirectoryIndex index.html >> >> >> >> # >> >> AddType application/x-httpd-php .php >> AddType application/x-httpd-php-source .phps >> > > Your email is void of any verison numbers, but are you using mod_php5? > If so, the way I read that Apache config is: > > -> True > -> True > DirectoryIndex index.html > > (and no other paths followed) > > which would explain your situation. > > Erik I am using mod_php5. What is the correct configuration. Chris -- Chris Maness (909) 223-9179 http://www.chrismaness.com