I have very stable server (TM) based (of course) on Gentoo. I have apache-1 and many of my users use mod_php4. But I want to allow them use mod_php5 if they want and if not let them stay with mod_php4 for some time. So I need both PHP4 and PHP5 merged and apache configured to use PHP4 for *.php and *.php4 and PHP5 for *.php5. But this, as far as I know, cannot be done currently. Could you add this feature?
If this feature is currently present, then please explain how to use it and sorry for taking your time.
Steps to Reproduce:
The problem is NOT in Gentoo.
It's that symbol conflicts between mod_php if you have both of them in Apache. Upstream PHP strongly recommends that you do NOT use both of them at the same time.
The great majority of all PHP4 code will work perfectly fine with PHP5.
The only route you could consider for what you want, is to install like so:
You'll have to force the last one to install manually using ebuild, as it will want dev-php/php-5.*, and I make no gaurentees on any PEAR code working with the PHP5 version in such a mixed setup.