Php 5.2.9 Updated But Mysql Doesnt Work
Jun1
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
Update PHP to 5.2.9 in CentOS
Jun0
I am using CentOS, i need update Php but yum latest Php version is Php 5.2.6. I solve this problem with download RPM from famillecollet.com.
Full Rpm list is in http://rpms.famillecollet.com
Php Latest Download : http://www.php.net/downloads.php
wget http://rpms.famillecollet.com/el5.i386/remi-release-5-4.el5.remi.noarch.rpm rpm -Uvh remi-release-5-4.el5.remi.noarch.rpm yum --enablerepo=remi update php

