Thanks to both Georges and Ryan for their replies. Yeah, I suppose it would have made sense for me to mention what I'm using.

I have phppgadmin, phpmyadmin, squirrelmail, and postfixadmin (in an overlay, and unfortunately with some customization) on my machine. I think at least the first three are php5-ready.

For custom stuff, there is one complete site -- written by my brother -- using php. Hopefully it's not using any php4-specific stuff. I think he does use some PEAR modules... MDB2, Http_Client, etc. Luckily I think that site's going to reach end-of-life soon (was an internal site for a research project), so maybe this update will rush that along. :-)

Other than this, there are a few pages here and there that use some php. I don't think any of those use any libraries or fancy stuff... hopefully not.

Now, I should not need to re-emerge the webapps (phpmyadmin, etc.), right? They don't have any compiled code. I'd rather not deal with the configs if possible. I will re-emerge all the PEAR/PECL stuff though.

Will write again to let you know how it went.

Ben

PS: Hmm, so the email the other day said that php4 would be removed from the tree yesterday. So, I suppose that this means that if I move to php5 there's no way to move back to php4? :-o


Georges Toth wrote:
Hi Ben,

So, I know I'm a bad gentoo administrator and all, but I am just getting
around to moving from php 4 to 5. Was wondering if anyone knew of any
gotchas to watch out for or guides to help with the process. Everything I'm
finding through google seems to be about the update from the old php
packages to dev-lang/php, which I did a long time ago.

It would be really sweet if I could just unmask php and emerge. What are
the chances of it being that easy?

It depends on the php scripts you use.
If they are php5 compatible, the migration should be smooth.
php-dependant libraries need to be re-emerged, same goes for pecl packages (pecl4 -> pecl5).

If you've got scripts which are php5 incompatible, you have a problem.
One solution is to run php4 as cgi for that specific docroot, or have both php4 and php5 running as modules using the concurrent patch (but I wouldn't advise that as it *sadly* isn't supported upstream).


I just wish they would make it easier for running different php versions on the same server, as apache modules....and now with php6 being released "soon".... but oh well ;-)


Hope this helped.



--
[EMAIL PROTECTED] mailing list

Reply via email to