From: "Ole Markus With" <olemarkus@olemarkus.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/php:master commit in: docs/
Date: Sun, 5 Jun 2011 12:29:43 +0000 (UTC) [thread overview]
Message-ID: <2e928a54861889ce378b9dbadfbd4d284807d7a5.ole_markus_with@gentoo> (raw)
commit: 2e928a54861889ce378b9dbadfbd4d284807d7a5
Author: Ole Markus With <olemarkus <AT> olemarkus <DOT> org>
AuthorDate: Sun Jun 5 12:25:39 2011 +0000
Commit: Ole Markus With <olemarkus <AT> olemarkus <DOT> org>
CommitDate: Sun Jun 5 12:29:22 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/php.git;a=commit;h=2e928a54
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:
</chapter>
<chapter>
+<title>Apache and mod_php</title>
+<section>
+<body>
+
+<p>Apache is the trusted server part of the LAMP stack. Using mod_php, setting 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 FastCGI/FPM setup. If you want FPM, we recommend that you use nginx as server.</p>
+
+<p>Installing mod_php is as easy as enabling the apache2 USE flag for dev-lang/php</p>
+
+
+<pre caption="/etc/package.use">
+dev-lang/php apache2
+</pre>
+
+<p>This will also pull in www-servers/apache. After the install finish, make sure you add "-D PHP5" to <path>/etc/conf.d/apache2</path></p>
+
+<pre caption="/etc/conf.d/apache2">
+<var>APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D USERDIR -D PHP5"</var>
+</pre>
+
+<warn>If you do not complete this step, your php source code will be outputted instead of interpreted</warn>
+
+</body>
+</section>
+</chapter>
+
+
+<chapter>
<title>Nice to know</title>
<section>
<title>Development vs Production php.ini files</title>
next reply other threads:[~2011-06-05 12:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-05 12:29 Ole Markus With [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-06-05 12:29 [gentoo-commits] proj/php:master commit in: docs/ Ole Markus With
2011-06-05 12:29 Ole Markus With
2011-02-15 17:39 Ole Markus With
2011-02-13 15:45 Ole Markus With
2011-02-13 15:21 Ole Markus With
2011-02-13 15:21 Ole Markus With
2011-02-13 15:21 Ole Markus With
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2e928a54861889ce378b9dbadfbd4d284807d7a5.ole_markus_with@gentoo \
--to=olemarkus@olemarkus.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox