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 1QTCSv-00061l-NJ for garchives@archives.gentoo.org; Sun, 05 Jun 2011 12:30:01 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9F7981C1C8; 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 6230F1C1C8 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 D6D742AC008 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 087828003C 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: <5b6d655f90f71add58510e7c289c72b7c1424c29.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: 5b6d655f90f71add58510e7c289c72b7c1424c29 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: 7692937a4bc4d4a55bd8ad57b11d8103 commit: 5b6d655f90f71add58510e7c289c72b7c1424c29 Author: Ole Markus With olemarkus org> AuthorDate: Sun Jun 5 12:25:10 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=3D5b6d655f Removed documentation on old fcgi setup. No longer want users to use that= one. --- docs/php-installing.xml | 128 -----------------------------------------= ------ 1 files changed, 0 insertions(+), 128 deletions(-) diff --git a/docs/php-installing.xml b/docs/php-installing.xml index 539207e..a1fad09 100644 --- a/docs/php-installing.xml +++ b/docs/php-installing.xml @@ -21,134 +21,6 @@ This document will guide you through installing PHP o= n Gentoo 2011-02-13 =20 -Installing PHP FastCGI - -
- -Discouraged for PHP 5.3.3 and newer - -
- -
-Emerging PHP - - -

-PHP has a huge number of USE flags available. Luckily, the USE flags tha= t the -PHP ebuilds set by default are fairly sane so the only one we need to ad= d is=20 -the cgi USE flag, which gives us the FastCGI server API. I find that ena= bling -cgi as a global USE flag in /etc/make.conf is a bad idea as= I do not -care about enabling cgi support for every single package in the tree tha= t -support such a thing. If you are like me, adding it to -/etc/portage/package.use is what you want. Just drop the fo= llowing line -in there: -

- -
-dev-lang/php cgi
-
- -

-That is about all the configuration you need for PHP. Now, emerge!

- -
-emerge -av php
-
- - -
-
-configuring Apache2 - - -

-Apache is a trusted member of the LAMP stack and probably the webserver = that -the most people are familiar with. In addition to www-servers/apache, we= need -to install another package to get fastcgi working: www-apache/mod_fas= tcgi. -

- -
-emerge -av apache mod_fastcgi
-
- - -

After all has been installed, simply enable it in:

-
-APACHE2_OPTS=3D"-D DEFAULT_VHOST -D INFO -D LANGUAGE -D USERDIR -D =
FASTCGI"
-
- -

Once that is done, drop the following into /etc/apache2/vhosts.= d/00_default_vhost.conf

- -
-
-Listen 80
-
-NameVirtualHost *:80
-
-
-<VirtualHost *:80>
-        ServerName localhost
-=20
-        DocumentRoot /var/www/localhost/htdocs/
-=20
-        <IfModule mpm_peruser_module>
-                ServerEnvironment apache apache
-        </IfModule>
-         AddHandler php5-fastcgi .php
-         FastCgiServer /usr/lib/php5.2/bin/php-cgi
-=20
-        <Directory /var/www/localhost/htdocs/>
-        Order deny,allow
-        Allow from all
-=20
-        </Directory>
-=20
-</VirtualHost>
-
-
- -

That is it. Now start apache

- -
-/etc/init.d/apache2 start
-
- -

Put something like the following into /var/www/localhost/htdocs= /index.php

- -
-<?php
-phpinfo();
-
- - -

That is it. Now you should be able to enter http://localhost/index.php to test your setup.

- - -
-
-Configuring lighttpd - - - -

First, make sure that you have the php USE flag enabled in your syste= m. Revisit your /etc/portage/package.use is what and append the following= :

-
-www-server/lighttpd php
-
- -

Then emerge lighttpd

- -
-emerge -av lighttpd
-
- - -

That is basically it. The configuration files that comes with lighttp= d should work out of the box, and you should be able to see your site at -http://localhost/index.php

- -
-
- - Installing PHP FPM