Gentoo Archives: gentoo-server

From: Wendall Cada <wendallc@×××××.com>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] Need help installing Apache with PHP on our server
Date: Fri, 10 Feb 2006 19:53:25
Message-Id: 1139596705.9064.11.camel@localhost
In Reply to: Re: [gentoo-server] Need help installing Apache with PHP on our server by Kerin Millar
1 To add to Kerin's comments, here is some clarity on dev-lang/php4 and
2 dev/lang/php5. The brilliant thing about the new system is that you can
3 run php4 and php5 on the same system without conflicts associated with
4 this setup.
5 # emerge dev-lang/php will install the current version of php5. However,
6 to determine what needs installed, you'll need one of the following use
7 flags:
8 apache2: Chooses Apache2 support (builds mod_php)
9 cli: Builds the command line SAPI
10 cgi: Builds the CGI SAPI
11
12 To add php4 support, you'll want to specify the most recent php4
13 package:
14 # emerge =dev-lang/php-4.4.1-r3
15
16 To set what packages uses you have for php4/php5, you'll want to use
17 php-select tool, which will automatically be installed with dev-lang/php
18 as a dependency. For example, setting mod_php4 as the default for
19 apache2 would be done like this:
20 # php-select apache2 php4 && /etc/init.d/apache2 restart
21
22 Having support of both is quite important if you run software that
23 depends on a specific version of php. Some PEAR libs are still not
24 working under php5, so php4 support is vital until...
25
26 My current server configuration is as follows:
27 CLI SAPI: php5
28 CGI SAPI: php5
29 Apache2: mod_php4 (Fast and Stable, doesn't die on multiple PEAR bugs)
30
31 Wendall
32
33 On Thu, 2006-02-09 at 18:18 +0000, Kerin Millar wrote:
34 > On 09/02/06, LYL <lyl+gentoo@××××.com> wrote:
35 > > dev-lang/php is php v5.0 up, while dev-php/php is php4
36 > >
37 >
38 > That's not correct. Just to make it perfectly clear - *anyone* who is
39 > currently using dev-php/{php,mod_php} in any shape or form should
40 > migrate to dev-lang/php as soon as possible The former ebuilds are
41 > emphatically dead and *completely* unsupported and will eventually
42 > disappear from the portage tree! Indeed, other packages marked stable
43 > will assume the usage of dev-lang/php. Almost anything to do with PEAR
44 > uses a revision of the php-pear eclass which depends on dev-lang/php
45 > for example.
46 >
47 > However, as Christopher remarked earlier in the thread, it is
48 > necessary to mask out php-5 if you want to stick with php-4 (for the
49 > simple reason that php-5 is marked stable).
50 >
51 > Further reading:
52 >
53 > http://tinyurl.com/9qwy7
54 > http://www.gentoo.org/proj/en/php/php-upgrading.xml
55 > http://www.gentoo.org/proj/en/php
56 >
57 > I'd also suggest reading
58 > http://svn.gnqs.org/projects/gentoo-php-overlay/wiki/CommonQuestions#DoYouRecommendAnyUSEFlags.
59 >
60 > Further questions are best directed towards the #gentoo-php channel on freenode.
61 >
62 > Cheers,
63 >
64 > --Kerin
65 >
66
67 --
68 gentoo-server@g.o mailing list