PHP 5.3 Package Install Problem

I need to upgrade PHP from 5.2.17 to 5.3 for an application requirement. I tried to use the yum package installer in Webmin, but received an error about a problem with php-common. Here's the error. I tried the suggested options except for skip (makes me nervous). How can I get it to install? Do I need to remove the current php-common first? This is a production server.

--> Finished Dependency Resolution php53-common-5.3.3-1.el5_7.6.x86_64 from updates has depsolving problems --> php53-common conflicts with php-common Error: php53-common conflicts with php-common You could try using --skip-broken to work around the problem You could try running: package-cleanup --problems package-cleanup --dupes rpm -Va --nofiles --nodigest

Status: 
Active

Comments

Howdy -- you can indeed use the php53 packages that come with CentOS 5.6 in place of the existing packages you're using.

However, for that to work -- it's not just an upgrade, you'd need to remove all of your current php-* packages (not just php-common), and replace those with the php53-* packages.

It worries me to uninstall PHP, as many things depend on it. I am also needing to do the same upgrade with postgres and it's giving me similar messages about conflicts. I read in a post somewhere that postgres is a required package for Virtualmin/Webmin and it must be upgraded, not removed.

Is there any way to do this from command line with yum without uninstalling the prior versions?

Thanks.

I'm not familiar with upgrading Postgres, so I can't really speak to that.

However, uninstalling php-* and then installing php53-* is the only way to get the CentOS version of PHP 5.3 installed.

That does typically work without problems -- that said, we'd encourage you to try it first on a test system before making changes like that on your live server.

Not everyone has spare server hardware laying around, so what you could do is setup CentOS 5 in Virtualbox, and perform your tests on it.