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
Share and Enjoy:
  • StumbleUpon
  • Digg
  • TwitThis
  • FriendFeed
  • del.icio.us
  • MySpace
  • Technorati
  • Facebook
  • Google Bookmarks
  • Live

Enjoy this article?

Consider subscribing to our RSS feed!

Share us Facebook, FriendFeed, Digg

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

1 Comment

  1. Mike Smithson
    17:14 on June 12th, 2009

    Hey, nice post, really well written. You should blog more about this.

Sorry, the comment form is closed at this time.

Oyun