If you want to have a look at the “consolidated” PHP ebuilds that I’ve been working on, there’s now a tarball available. There are no PECL or PEAR packages in the tarball yet, but the CLI, CGI and mod_php SAPIs work locally for me.
To choose the SAPI you want, use these USE flags:
- cli - builds & installs /usr/bin/php
- cgi - builds & installs /usr/bin/php-cli
- apache1 - builds & installs mod_php for apache1
- apache2 - builds & installs mod_php for apache2
You can mix and match any of these USE flags; except you can’t have both apache1 and apache2 switched on.
The whole point of these ebuilds is that you can have both PHP4 and PHP5 installed at the same time. To install PHP4, use
USE=”cli cgi apache2″ emerge ‘=dev-lang/php-4.4.0′
and to install PHP5, use
USE=”cli cgi apache2″ emerge ‘=dev-lang/php-5.0.4′
These ebuilds install their contents into /usr/lib/php[45]. (The Apache modules go into the right place for Apache). (The PEAR packages go into /usr/share/pear, if you use the ‘pear’ USE flag). They do not install anything into /usr/bin. If you want your familiar /usr/bin/php and /usr/bin/php-cgi, use the experimental eselect modules.
Feedback, suggestions, and especially testing urgently sought. There are 90+ USE flags for PHP5 (and almost that many for PHP4), and it hasn’t been possible for me to test them all. If you find something that’s broken, email me directly (stuart at gentoo.org) - please don’t file bugs in Bugzilla yet.
Next update to the overlay will be Thursday night UK time at the earliest.
Be the first to leave a comment »