LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trying to upgrade PHP via yum on CentOS fails. (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-upgrade-php-via-yum-on-centos-fails-880822/)

nakins 05-15-2011 08:44 AM

Trying to upgrade PHP via yum on CentOS fails.
 
I have a CentOS 5 64bit cloud server at 1and1. The current version of PHP on it is 5.2.17. I would like to install 5.3.6, which is available from the Atomic repository. I'm using yum for all this but when I try to install the 5.6.3 package, I get the following.

Total download size: 10 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
Package php-ldap needs php-common = 5.2.17-1.el5.art, this is not available.
Complete!
[root@s15 ~]# php -v
PHP Warning: Module 'ldap' already loaded in Unknown on line 0
PHP 5.2.17 (cli) (built: Jan 7 2011 10:39:29)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
[root@s15 ~]#

What do I need to do?

Thanks

corp769 05-15-2011 08:34 PM

Hello,

Before we get into too deep of troubleshooting, can you try forcing a reinstall of php-common?

Cheers,

Josh

nakins 05-15-2011 08:48 PM

I would try if I knew how to do that.

corp769 05-15-2011 09:05 PM

Sure thing man...
Code:

yum reinstall php-common

nakins 05-15-2011 10:30 PM

Excellent. I'll give that a try and let you know. Do you give advice on women per chance?

corp769 05-15-2011 10:33 PM

LOL I do actually. Send me a PM and I can be your LQ therapist ;)

Second edit - Prenup added. I just might turn this into a blog ;)
Code:

yum erase woman-general
cd /home/kitchen
yum install wife
cd ~
yum erase blonde*
./pre-prenup true
chown +rw wife

Hope you like that, as I just thought of that off the top of my head LOL

nakins 05-16-2011 01:15 PM

Well, as for my original problem, it would seem the 'reinstall' is not an option in the yum version I have. I have also read posts where others are having problems with upgrading to php 5.3. CentOS does have a new version out that supports PHP 5.3, so I think I might try upgrading the OS before I get all crazy with this. then I will try to upgrade yum and php and see what happens.

As for the other bit of code you offered, can you add a prenup as a dependency to that package?

Thanks for your help. I did learn something from it.

corp769 05-16-2011 09:04 PM

Quote:

Originally Posted by nakins (Post 4358076)
Well, as for my original problem, it would seem the 'reinstall' is not an option in the yum version I have. I have also read posts where others are having problems with upgrading to php 5.3. CentOS does have a new version out that supports PHP 5.3, so I think I might try upgrading the OS before I get all crazy with this. then I will try to upgrade yum and php and see what happens.

As for the other bit of code you offered, can you add a prenup as a dependency to that package?

Thanks for your help. I did learn something from it.

Oh ok. Well let me know how that goes, and we can go from there.

And if you really want me to, I can edit my previous post to reflect the prenup ;)


All times are GMT -5. The time now is 06:21 PM.