Php 5.2.9 Updated But Mysql Doesnt Work

I blogged Php 5.2.9 Upgrade. Some of my user updated with using this entry. But i miss something in these entry. Firstly, i have to say. If you upgrade php version, you have to upgrade mysql and php-mysql.

To Upgrade Mysql and Php-Mysql tool

yum --enablerepo=remi update mysql*
yum --enablerepo=remi update php-mysql

And there one more thing, he was php4 and upgrade to 5. Firstly we can not upgrade, we install php newly.

Installing Php

yum --enablerepo=remi install php

When you install on old version, there will be somethings to change.  Their extentions directory are different
Old One
extension_dir = /usr/lib/php4

New one (Php 5)
extension_dir = /usr/lib/php/modules

And i restarted services

/etc/init.d/mysqld restart
/etc/init.d/httpd restart

I get error in httpd restart

PHP Warning:  Module ‘mysql’ already loaded in Unknown on line 0
PHP Warning:  Module ‘mysqli’ already loaded in Unknown on line 0

Because mysql is standart module in php5, we dont need load mysql in config file. I change php.ini file (/etc/php.ini) Only i add ; character, it is for comments.

;extension=mysql.so
;extension=mysqli.so