From owner-freebsd-questions@FreeBSD.ORG Sat Mar 7 04:15:19 2009 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 8EC091065687 for ; Sat, 7 Mar 2009 04:15:19 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [220.233.188.227]) by mx1.freebsd.org (Postfix) with ESMTP id D7D2A8FC23 for ; Sat, 7 Mar 2009 04:15:18 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id n274FG0Y022105; Sat, 7 Mar 2009 15:15:17 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sat, 7 Mar 2009 15:15:16 +1100 (EST) From: Ian Smith To: Jos Chrispijn In-Reply-To: <20090306230528.EEB72106574F@hub.freebsd.org> Message-ID: <20090307141250.O71460@sola.nimnet.asn.au> References: <20090306230528.EEB72106574F@hub.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org Subject: Re: Apache 1.3.41 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: Sat, 07 Mar 2009 04:15:20 -0000 On Fri, 06 Mar 2009 20:01:09 +0100 Jos Chrispijn wrote: > For some reason, Apache isn't starting anymore after having my ports > upgraded today. That was a major php5 upgrade and I think it might have > to do something with it. Could well be. Others offered good suggestions re rebuilding and order in extensions.ini, but I did spot a couple of things in your config: > httpd-error.log is empty on this Nothing in /var/log/messages either? > my httpd.conf: [..] > LoadModule php5_module libexec/apache/libphp5.so [..] > AddModule mod_php5.c [..] > DocumentRoot "/usr/local/www" [..] > > Options Indexes FollowSymLinks MultiViews ExecCGI Includes > AllowOverride AuthConfig Limit Indexes Options FileInfo > Order allow,deny > Allow from all > Shouldn't that be ie DocumentRoot? > > UserDir public_html > As advised by Apache docs re security, it's worth adding here: UserDir disabled root Ok, annotating this section: > TRUE > FALSE > > DirectoryIndex index.php index.php3 index.html > > > DirectoryIndex index.php3 index.html > > > TRUE > FALSE > DirectoryIndex index.php index.html index.htm > > TRUE > DirectoryIndex index.php index.html index.htm > > TRUE !!! so overriding previous > DirectoryIndex index.html > > > The section should come last, after !mod_php4.c, or index.php isn't treated as a DirectoryIndex. I don't know if php5 install sticks it in there or what, but I've had to fix it here before. [..] > [..] > > AddType application/x-httpd-php3 .php3 > AddType application/x-httpd-php3-source .php3s > > > AddType application/x-httpd-php .php > AddType application/x-httpd-php-source .phps > > > AddType application/x-httpd-php .php > AddType application/x-httpd-php-source .phps > Looks right here. > NameVirtualHost * > > include /usr/local/etc/apache/httpd.sites Presumably unchanged/ok? cheers, Ian