PHP 5.0.4 "unstable rpm" upgrade success on fc2

Support/Development for PHP
michaelfavia
Forum User
Forum User
Posts: 9
Joined: Tue Feb 28, 2006 12:31 pm

PHP 5.0.4 "unstable rpm" upgrade success on fc2

Unread post by michaelfavia »

Hey wanted to thank scott for the "unstable" rpms and share the successful process with everyone else. The upgrade from php4 to php5 has a few growing pains but it isn't much to deal with. The following is my personal experience and the result was a functional php 5.0.4 install with no known side effects.


1. "rpm -qa php\*" <-- this gets you a list of your current installed php version and packages. Save it somewhere just in case.
2. add the atomic testing channel to your yum.conf
3. attempt to upgrade to php5 via "yum upgrade php" (dependency error msg expected)
4. For each failed dep package (you should get php-domxml and php-xslt depending on your server configuration) you want to see what depends on it "rpm -q --whatrequires PKGNAME"
5. if the answer is nothing then you can remove it "rpm -e PKGNAME" or "yum remove PKGNAME" assuming you dont need it for something you know of.
6. if the answer is some other package then that package will need to be removed for a clean uninstall to be performed (i had only to remove Sitebuilder which i have never used anyway).
7. The sole exception to the above that i had was the horde rpm which depended on domxml and the removal of would have meant uninstalling all of horde (imp, etc). So after reading that DOM in php5 replaces DOMXML in php4 at both php.net and the horde site i decided i could just update around it. when it was the only remaining dep on domxml i removed it via rpm -e --nodeps PKGNAME
8. "yum upgrade php" now works and finishes the result of which is a mostly functional php install. I had to tend to some configuration file cleaning up to enable mysql extensions and delete hhtpd.conf references to sitebuilder. but after that everything is smooth sailing.

I know enough about package management to know that uninstalling via --nodeps isnt the prefered solution but the end result does work and is functional for all of 10 hours now. I don't know if dom functionality is configured into scotts php5 rpm because the configure line in phpinfo() seems to imply it isnt but horde still works well as far as i can tell.

My only lingering questions are:
Is the dom core extension provided in your php rpm build? Or can i find it as a modularized rpm? Does the psa-horde need to depend on domxml still or just dom now?

Thanks again for all of the great work and i hope the above recollection helps and doesn't hurt anyone. Use at own risk. -mf
michaelfavia
Forum User
Forum User
Posts: 9
Joined: Tue Feb 28, 2006 12:31 pm

one other ?

Unread post by michaelfavia »

Is GD library support missing on purpose or for a particular reason (compat, etc)? thx. -mf
michaelfavia
Forum User
Forum User
Posts: 9
Joined: Tue Feb 28, 2006 12:31 pm

shot in foot

Unread post by michaelfavia »

Classic case of posting too soon for my own good. The extra rpms weren't included in the upgrade and i just added GD and xml support (yum install php-gd php-xml). After a quick restart everything is perfect.Sorry for the forum spam. I guess my only remaining question is this then:

Why doesnt yum realize that php-xml provides php-domxml and provide an upgrade path for the psa-horde rpm allowing you to drop the old php4 one? I'm sure ill solve this question too before anyone has a chance to read it :)

-mf
Post Reply