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 1Q5d0T-0001TK-JE for garchives@archives.gentoo.org; Fri, 01 Apr 2011 11:59:15 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AA1F7E04F2; Fri, 1 Apr 2011 11:57:51 +0000 (UTC) Received: from mail.ukfsn.org (mail.ukfsn.org [77.75.108.10]) by pigeon.gentoo.org (Postfix) with ESMTP id 6CBB2E04F2 for ; Fri, 1 Apr 2011 11:57:51 +0000 (UTC) Received: from localhost (smtp-filter.ukfsn.org [192.168.54.205]) by mail.ukfsn.org (Postfix) with ESMTP id 80944DEEF9 for ; Fri, 1 Apr 2011 12:57:50 +0100 (BST) Received: from mail.ukfsn.org ([192.168.54.25]) by localhost (smtp-filter.ukfsn.org [192.168.54.205]) (amavisd-new, port 10024) with ESMTP id tFQGePLO4HIJ for ; Fri, 1 Apr 2011 12:57:50 +0100 (BST) Received: from wstn.localnet (unknown [78.32.181.186]) by mail.ukfsn.org (Postfix) with ESMTP id 4F46CDEE7E for ; Fri, 1 Apr 2011 12:57:50 +0100 (BST) From: Peter Humphrey Organization: at home To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Setting up a local web server Date: Fri, 1 Apr 2011 12:57:49 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.36-gentoo-r8; KDE/4.4.5; x86_64; ; ) 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-Transfer-Encoding: 7bit Message-Id: <201104011257.49639.peter@humphrey.ukfsn.org> X-Archives-Salt: X-Archives-Hash: f1c0241ec65309ef1025736242a78cb3 Hello list, I want a box on my LAN to be a local web and database server. I've installed Apache, MySQL, PHP and phpmyadmin and I'm about to get phpmyadmin going. The problem is that Apache is displaying the contents of php files instead of interpreting them. What have I missed? I have USE="apache2 php" in make.conf and APACHE2_OPTS="-D PHP" in /etc/conf.d/apache2. (Why is it so hard to get a web server going in Gentoo? I remember having the same difficulty 18 months ago; it'd be good to be able to remember what I did. This is the one area I've found where the Gentoo documentation is weak - well, nonexistent actually. We ought to have an idiot's guide to getting started, at least.) -- Rgds Peter