To add to Kerin's comments, here is some clarity on dev-lang/php4 and
dev/lang/php5. The brilliant thing about the new system is that you can
run php4 and php5 on the same system without conflicts associated with
this setup.
# emerge dev-lang/php will install the current version of php5. However,
to determine what needs installed, you'll need one of the following use
flags:
apache2: Chooses Apache2 support (builds mod_php)
cli: Builds the command line SAPI
cgi: Builds the CGI SAPI
To add php4 support, you'll want to specify the most recent php4
package:
# emerge =dev-lang/php-4.4.1-r3
To set what packages uses you have for php4/php5, you'll want to use
php-select tool, which will automatically be installed with dev-lang/php
as a dependency. For example, setting mod_php4 as the default for
apache2 would be done like this:
# php-select apache2 php4 && /etc/init.d/apache2 restart
Having support of both is quite important if you run software that
depends on a specific version of php. Some PEAR libs are still not
working under php5, so php4 support is vital until...
My current server configuration is as follows:
CLI SAPI: php5
CGI SAPI: php5
Apache2: mod_php4 (Fast and Stable, doesn't die on multiple PEAR bugs)
Wendall
On Thu, 2006-02-09 at 18:18 +0000, Kerin Millar wrote:
> On 09/02/06, LYL <[EMAIL PROTECTED]> wrote:
> > dev-lang/php is php v5.0 up, while dev-php/php is php4
> >
>
> That's not correct. Just to make it perfectly clear - *anyone* who is
> currently using dev-php/{php,mod_php} in any shape or form should
> migrate to dev-lang/php as soon as possible The former ebuilds are
> emphatically dead and *completely* unsupported and will eventually
> disappear from the portage tree! Indeed, other packages marked stable
> will assume the usage of dev-lang/php. Almost anything to do with PEAR
> uses a revision of the php-pear eclass which depends on dev-lang/php
> for example.
>
> However, as Christopher remarked earlier in the thread, it is
> necessary to mask out php-5 if you want to stick with php-4 (for the
> simple reason that php-5 is marked stable).
>
> Further reading:
>
> http://tinyurl.com/9qwy7
> http://www.gentoo.org/proj/en/php/php-upgrading.xml
> http://www.gentoo.org/proj/en/php
>
> I'd also suggest reading
> http://svn.gnqs.org/projects/gentoo-php-overlay/wiki/CommonQuestions#DoYouRecommendAnyUSEFlags.
>
> Further questions are best directed towards the #gentoo-php channel on
> freenode.
>
> Cheers,
>
> --Kerin
>
--
[email protected] mailing list