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 1QTCTF-00064d-AO for garchives@archives.gentoo.org; Sun, 05 Jun 2011 12:30:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6C3A31C1DC; Sun, 5 Jun 2011 12:29:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 3D51B1C1C8 for ; Sun, 5 Jun 2011 12:29:44 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BB48D1B4052 for ; Sun, 5 Jun 2011 12:29:43 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 311A08003E for ; Sun, 5 Jun 2011 12:29:43 +0000 (UTC) From: "Ole Markus With" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ole Markus With" Message-ID: <2e928a54861889ce378b9dbadfbd4d284807d7a5.ole_markus_with@gentoo> Subject: [gentoo-commits] proj/php:master commit in: docs/ X-VCS-Repository: proj/php X-VCS-Files: docs/php-installing.xml X-VCS-Directories: docs/ X-VCS-Committer: ole_markus_with X-VCS-Committer-Name: Ole Markus With X-VCS-Revision: 2e928a54861889ce378b9dbadfbd4d284807d7a5 Date: Sun, 5 Jun 2011 12:29:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 34851b6c96956de6d4afed6990eea43b commit: 2e928a54861889ce378b9dbadfbd4d284807d7a5 Author: Ole Markus With olemarkus org> AuthorDate: Sun Jun 5 12:25:39 2011 +0000 Commit: Ole Markus With olemarkus org> CommitDate: Sun Jun 5 12:29:22 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/php.git;a=3Dc= ommit;h=3D2e928a54 Added apache2 mod_php install instructions --- docs/php-installing.xml | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/docs/php-installing.xml b/docs/php-installing.xml index a1fad09..ad19baa 100644 --- a/docs/php-installing.xml +++ b/docs/php-installing.xml @@ -153,6 +153,33 @@ like this: =20 +Apache and mod_php +
+ + +

Apache is the trusted server part of the LAMP stack. Using mod_php, s= etting up PHP with Apache is rather trivial. The PHP Herd recommends that= if you want to use PHP with Apache, you should use mod_php over any Fast= CGI/FPM setup. If you want FPM, we recommend that you use nginx as server= .

+ +

Installing mod_php is as easy as enabling the apache2 USE flag for de= v-lang/php

+ + +
+dev-lang/php apache2
+
+ +

This will also pull in www-servers/apache. After the install finish, = make sure you add "-D PHP5" to /etc/conf.d/apache2

+ +
+APACHE2_OPTS=3D"-D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_=
DEFAULT_VHOST -D USERDIR -D PHP5"
+
+ +If you do not complete this step, your php source code will be out= putted instead of interpreted + + +
+
+ + + Nice to know
Development vs Production php.ini files