Gentoo Wiki


This page is a candidate for deletion 
Reason given: PHP4 is not under development anymore, use PHP5 instead. These instructions will no longer work because PHP 4 is no longer in the main tree.
If you disagree with its deletion, please explain why on its discussion page.
If you intend to fix it, please remove this notice, but do not remove this notice from articles that you have created yourself.
Make sure no other pages link here and check the page's history before deleting.

This article is outdated. Please update this article with new information to match with the current portage tree and gentoo releases, and remove information about really old versions of software, then remove {{Update}} from this article's source.

Gentoo recently underwent major changes with regard to it's php packages. Read about them here:

This tip shows how to get your box in compliance while staying with php4.


The following line in package.mask will prevent php-5 from being installed, forcing the use of php-4:

File: /etc/portage/package.mask


Tweak your use flags:

File: /etc/portage/package.use
dev-lang/php apache2 session berkdb dba ...


Now switch to dev-lang/php:

$ emerge --unmerge dev-php/mod_php dev-php/php
$ emerge dev-lang/php
Retrieved from ""

Last modified: Tue, 26 Aug 2008 03:44:00 +0000 Hits: 6,305