Thanks aolXFT for the link. How can I enable functions like --with=imap and mysql in rpm. -Uvh will simply upgrade to the latest version.
Thanks again.
Main Topics
Browse All TopicsI installed php while installing linux Red Hat 7.2
Php version installed by default is little old. I need to upgrade php to latest version. But when I tried to uninstall old versin of php it says can't uninstall beacuse of some dependencies.
Problem is now I can't uninstall php and can't upgrade it.
I need to compile php with few features.
Is there any rpm available for the latest php version or is it possible in rpm we can enable or disable features while installing.
Please let me know.
Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You don't. You need the default PHP, as well as php-mysql, and php-imap. php-mysql will give you a dependency error if you try to install it without installing the main php rpm first.
The order of things would be to install the basic package(which you've done aparently). You then install the php-mysql package, and the php-imap package.
Why not just manually compile and install PHP on a separate area of your machine? Like under /usr/local or /opt, for example. Then just use your newly compiled PHP installation with your current Apache install.
Otherwise #1...do what aolXFT recommended. Upgrade with rpm -Uvh, and install the additional packages needed with rpm -ivh.
Otherwise #2...I assume you've tried
rpm -e php-xxx.rpm
(where xxx is the remainder of the php- package name).
Could you please let us know which dependencies are listed when you try to do that?
I'm agree with vulture99
Install the newest php in other directory /usr/local (usually) and complied with all your stuff like apache, mysql, ssl, bababa....
this will much more faster, cause you will find you need to spend lot of time for just removing the old php, until give up, I'm the one who give it up finally.
Business Accounts
Answer for Membership
by: aolXFTPosted on 2003-04-27 at 06:06:46ID: 8404803
To get the latest version of PHP in Rpm format I found this in at rpmfind.net
RPM/contri b/libc6/i3 86/php-4.3 .1- 1.i386. html
http://rpmfind.net//linux/
To upgrade PHP simply install this RPM with the -U flag.
rpm -Uvh php-.....rpm
You shouldn't have to uninstall the old one to do an upgrade.