yum update PHP on CentOS - missing dependency php-common
I am trying to update PHP on a centos server by using
Code:
yum update php Code:
Setting up Update Process yum install php-common results in a nothing to do error. I would be grateful if anybody could help me resolve this and get updated to 5.2.x Thanks in advance for any help - Andy |
you can try download the php-common rpm?
or do a yum remove php then confirm its gone with rpm -q and then you can reinstall with yum install php |
I'm not entirely sure where to get the rpm from as after a little investigation php-common 5.2.9-1.el4.art seems to be from the atomic rocket turtle repository and appears to be already installed.
If I run yum remove php am I likely to cause any other knock on problems with configuration etc? I don't want to lose the php-gd php-mysql etc as these are also needed by the forum software I'm trying to run on the server. |
When I was upgrading my PHP on my CentOS 5 server was that I ran the following command:
wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh yum upgrade php if running those 2 commands doesn't work, you can always try to run yum install php-common and see if you can install the common package |
thanks scsa20, as it turns out those are the exact commands I ran. Unfortunately I think the fact that a previous upgrade of PHP used the Centosplus repository has thrown things off a bit. yum-install php-common reports nothing to do as it oddly seems to be already installed.
|
Why not try yum reinstall php or even try to force it to reinstall the common package again with yum reinstall php-common? (Just trying to think of some ways to get it working for ya without going through the route of uninstalling things)
|
thanks for those suggestions. I have submitted a ticket with my host to see if my support covers PHP upgrades as I don't want to make unneccessary issues for myself if it can be helped. If not I'll let you know how I get on.
|
Thnaks !!!!
@scasa20
I know this topic is quite old, but I had to register to thank him. I've been trying for hours to solve the problem by installing various repo's but nothing worked. After following your instruction everything now works 100%. Thank You |
All times are GMT -5. The time now is 07:15 PM. |