From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Q60wi-0000ZX-MX for garchives@archives.gentoo.org; Sat, 02 Apr 2011 13:32:57 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 107021C001; Sat, 2 Apr 2011 13:31:14 +0000 (UTC) Received: from ns1.bonedaddy.net (ns1.bonedaddy.net [70.91.141.202]) by pigeon.gentoo.org (Postfix) with ESMTP id CFE881C001 for ; Sat, 2 Apr 2011 13:31:14 +0000 (UTC) Received: from ns1.bonedaddy.net (localhost [127.0.0.1]) by ns1.bonedaddy.net (8.14.4/8.14.4) with ESMTP id p32D2NSH030939 for ; Sat, 2 Apr 2011 09:02:23 -0400 Received: (from tgoodman@localhost) by ns1.bonedaddy.net (8.14.4/8.14.4/Submit) id p32D2NYF030938 for gentoo-user@lists.gentoo.org; Sat, 2 Apr 2011 09:02:23 -0400 X-Authentication-Warning: ns1.bonedaddy.net: tgoodman set sender to tsg@bonedaddy.net using -f Date: Sat, 2 Apr 2011 09:02:23 -0400 From: Todd Goodman To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Setting up a local web server Message-ID: <20110402130223.GE10937@ns1.bonedaddy.net> References: <201104011257.49639.peter@humphrey.ukfsn.org> <201104011418.39754.stephane@22decembre.eu> <201104012056.47604.peter@humphrey.ukfsn.org> <4D9659AE.4020605@badapple.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: X-Archives-Hash: 81192dc504f328bcd0723cdeec4ca404 * Adam Carter [110402 01:15]: > > dig you build php with an apache2 flag to enable the Apache module? > > > > And you'll also need this in your httpd.conf; > > AddType application/x-httpd-php .php 70_mod_php5.conf in /etc/apache2/modules.d adds the handler for that automatically when PHP5 is defined (and mod_mime.c is there.) So doublecheck that php was built with the apache2 USE flag as mentioned above. I've rebuilt php after apache2 before to be sure the needed modules are installed. Also as mentioned make sure your APACHE2_OPTS in /etc/conf.d/apache2 uses -D PHP5 and not just PHP or PHP4. And finally don't forget to restart apache after emerging php Todd