Page 1 of 1

PHP5 Upgrade Issue with MySQL or php-mysql

Posted: Sun Dec 30, 2007 2:36 pm
by nelisx
Hello,

I upgraded my php from 4 to 5 today using

Code: Select all

yum --enablerepo=centosplus update
After what appeared to be a successful update, i restarted my apache server and got the following message when going to my wordpress blog:
Your PHP installation appears to be missing the MySQL which is required for WordPress.
I searched extensively and tried

Code: Select all

yum install php-mysql
and 10 different variations of that to no avail...then I looked and it appears i have it installed:

Code: Select all

 rpm -qa | grep php
phpDig-1.85-80019
php-cli-5.2.5-2.el4.art
php-mysql-5.2.5-2.el4.art
php-xmlrpc-5.2.5-2.el4.art
phpBugTracker-1.19-80023
phpBook-1.50-80023
phpwebsite-0.10.2-80016
php-pear-1.5.0-5.el4.art
php-mbstring-5.2.5-2.el4.art
phpWiki-1.3.11-80031
phpBB-2.0.22-82016
phpmyvisites-2.3-82017
php-pdo-5.2.5-2.el4.art
php-ioncube-loader-3.1-2.el4.art
php-gd-5.2.5-2.el4.art
php-ncurses-5.2.5-2.el4.art
php-xml-5.2.5-2.el4.art
php-devel-5.2.5-2.el4.art
phpMyFamily-1.4.1-80023
phpsurveyor-0.98-80031
psa-php4-configurator-1.3.0-cos4.build82070918.10
phpAds-2.0.8-82029
phpMoney-1.3-80030
php-common-5.2.5-2.el4.art
php-5.2.5-2.el4.art
php-odbc-5.2.5-2.el4.art
php-ldap-5.2.5-2.el4.art
php-snmp-5.2.5-2.el4.art
php-imap-5.2.5-2.el4.art
I then found my way here, I noticed this test in a similar thread and tried it myself. here are the results:

Code: Select all

rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}\n" 'mysql*'
mysql-5.0.51-1.el4.art.i386
mysql-server-5.0.51-1.el4.art.i386
mysql-devel-5.0.51-1.el4.art.i386
mysqlclient14-4.1.22-2.el4.art.i386
mysql-libs-5.0.51-1.el4.art.i386
if i am seeing things the right way, i need to upgrade mysqlclient14 from 4.1 to 5.x or something, but I am very new to all this and I need some assistance for the next step. Currently I have about 4 blogs effected by my newbiness :shock:

my phpinfo can be found at:

http://ditoweb.com/phpinfo.php

here is one of my blogs, returning the same error:

http://www.cupofseo.com

Please Help!

Thanks

Jim

Posted: Mon Dec 31, 2007 9:56 am
by scott
Yep, check out the wiki page:

http://www.atomicorp.com/wiki/index.php/PHP

Same notes there apply for both my php 5.2.x the centosplus 5.1.x rpms

Posted: Mon Dec 31, 2007 12:12 pm
by nelisx
thanks!

Code: Select all

mv /etc/php.ini.rpmnew /etc/php.ini
was the missing link.