PHP Overlay Tarball Available

Posted by Stuart Herbert @ 9:38 PM, Mon 25 Jul 05

Filed under: Gentoo, PHP

No Comments

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 »

eselect modules for “consolidated” php packages

Posted by Stuart Herbert @ 9:12 PM, Mon 25 Jul 05

Filed under: Gentoo, PHP

No Comments

I’ve spent the evening putting together a couple of modules for eselect. These modules allow you to select which version of PHP is used for

  • /usr/bin/php (set by php.eselect)
  • /usr/bin/php-cgi (set by php-cgi.eselect)
  • //usr/bin/php-config, and /usr/bin/phpize (set by php-devel.eselect

You can pick them up from my dev space.

PS: eselect looks like a great framework for replacing many of Gentoo’s existing *-config programs. It’ll be even better when it’s a well-behaved UNIX program, and it produces output suitable for piping into other programs ;)

Be the first to leave a comment »

Calendar

July 2005
S M T W T F S
« Jun   Aug »
 12
3456789
10111213141516
17181920212223
24252627282930
31