CentOS 5.3 にPHP 5.2.9とMySQL 5.1.34をインストールする

  • 投稿日:
  • by
  • カテゴリ:

CentOS

CentOSにphpMyAdminの最新版を入れようと思ったら、PHP 5.2以降じゃないとダメだとエラーが出てしまいました。なので、PHPを5.2にアップグレードしたメモです。ちなみに、PHPだけやろうとすると依存性の問題でエラーが出たので、ついでにMySQLも5.1.34にアップデートしました。

参考URL


まずは今PHPがどのような状態かを調べる。
# php -v
PHP 5.1.6 (cli) (built: Apr 7 2009 08:00:04)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

yumではどのようにインストールされているかというと、以下の感じ。


# yum list installed php*
Loaded plugins: fastestmirror
Installed Packages
php.i386 5.1.6-23.2.el5_3
php-cli.i386 5.1.6-23.2.el5_3
php-common.i386 5.1.6-23.2.el5_3
php-devel.i386 5.1.6-23.2.el5_3
php-gd.i386 5.1.6-23.2.el5_3
php-ldap.i386 5.1.6-23.2.el5_3
php-mbstring.i386 5.1.6-23.2.el5_3
php-mysql.i386 5.1.6-23.2.el5_3
php-odbc.i386 5.1.6-23.2.el5_3
php-pdo.i386 5.1.6-23.2.el5_3
php-pear.noarch 1:1.4.9-4.el5.1

# yum list installed mysql*
Loaded plugins: fastestmirror
Installed Packages
MySQL-python.i386 1.2.1-1
mysql.i386 5.0.45-7.el5
mysql-bench.i386 5.0.45-7.el5
mysql-connector-odbc.i386 3.51.12-2.2
mysql-devel.i386 5.0.45-7.el5
mysql-server.i386 5.0.45-7.el5

インストールは、サードパーティのリポジトリからインストールをする。

以下のようにリポジトリをインストールする。

# wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
# wget http://rpms.famillecollet.com/el5.i386/remi-release-5-6.el5.remi.noarch.rpm
# rpm -Uvh epel-release-5* remi-release-5*

# wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
# rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm

これでインストールの準備はできたので、以下のコマンドでインストールする。
# yum -y --enablerepo=remi,epel,rpmforge update php* mysql*

ちなみにインストールログは以下の感じ。
[root@centos ~]# yum --enablerepo=remi,epel,rpmforge update php* mysql*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: ftp.riken.jp
* remi: iut-info.univ-reims.fr
* rpmforge: apt.sw.be
* base: ftp.riken.jp
* updates: ftp.riken.jp
* addons: ftp.riken.jp
* extras: ftp.cse.yzu.edu.tw
rpmforge | 1.1 kB 00:00
primary.xml.gz | 3.1 MB 00:07
rpmforge 8641/8641
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-devel.i386 0:5.1.34-1.el5.remi set to be updated
--> Processing Dependency: libmysqlclient_r.so.16 for package: mysql-devel
--> Processing Dependency: libndbclient.so.3 for package: mysql-devel
--> Processing Dependency: libmysqlclient.so.16 for package: mysql-devel
---> Package php-pdo.i386 0:5.2.9-1.el5.remi set to be updated
--> Processing Dependency: libsqlite.so.0 for package: php-pdo
--> Processing Dependency: libmysqlclient.so.15 for package: dovecot
--> Processing Dependency: libmysqlclient.so.15 for package: qt-MySQL
--> Processing Dependency: libmysqlclient.so.15 for package: libdbi-dbd-mysql
--> Processing Dependency: libmysqlclient.so.15 for package: perl-DBD-MySQL
--> Processing Dependency: libmysqlclient.so.15 for package: mod_auth_mysql
--> Processing Dependency: libmysqlclient.so.15 for package: mysql-connector-odbc
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: dovecot
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: qt-MySQL
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: libdbi-dbd-mysql
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: perl-DBD-MySQL
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: mod_auth_mysql
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: mysql-connector-odbc
--> Processing Dependency: libmysqlclient_r.so.15 for package: MySQL-python
--> Processing Dependency: libmysqlclient_r.so.15 for package: mysql-connector-odbc
--> Processing Dependency: libmysqlclient_r.so.15(libmysqlclient_15) for package: MySQL-python
--> Processing Dependency: libmysqlclient_r.so.15(libmysqlclient_15) for package: mysql-connector-odbc
---> Package php-gd.i386 0:5.2.9-1.el5.remi set to be updated
--> Processing Dependency: libt1.so.5 for package: php-gd
---> Package php-mysql.i386 0:5.2.9-1.el5.remi set to be updated
---> Package php-cli.i386 0:5.2.9-1.el5.remi set to be updated
---> Package mysql.i386 0:5.1.34-1.el5.remi set to be updated
---> Package php-odbc.i386 0:5.2.9-1.el5.remi set to be updated
---> Package php.i386 0:5.2.9-1.el5.remi set to be updated
---> Package mysql-bench.i386 0:5.1.34-1.el5.remi set to be updated
---> Package php-common.i386 0:5.2.9-1.el5.remi set to be updated
---> Package php-ldap.i386 0:5.2.9-1.el5.remi set to be updated
---> Package php-devel.i386 0:5.2.9-1.el5.remi set to be updated
---> Package php-mbstring.i386 0:5.2.9-1.el5.remi set to be updated
---> Package php-pear.noarch 1:1.8.1-1.el5.remi set to be updated
---> Package mysql-server.i386 0:5.1.34-1.el5.remi set to be updated
--> Running transaction check
---> Package t1lib.i386 0:5.1.1-7.el5 set to be updated
---> Package mysqlclient15.i386 0:5.0.67-1.el5.remi set to be updated
---> Package sqlite2.i386 0:2.8.17-2.el5.remi set to be updated
---> Package perl-DBD-mysql.i386 0:4.010-1.el5.rf set to be updated
---> Package mysql-libs.i386 0:5.1.34-1.el5.remi set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================
Package Arch Version Repository Size
==============================================================================================================
Installing:
perl-DBD-mysql i386 4.010-1.el5.rf rpmforge 221 k
replacing perl-DBD-MySQL.i386 3.0007-2.el5

Updating:
mysql i386 5.1.34-1.el5.remi remi 3.7 M
mysql-bench i386 5.1.34-1.el5.remi remi 494 k
mysql-devel i386 5.1.34-1.el5.remi remi 3.2 M
mysql-server i386 5.1.34-1.el5.remi remi 11 M
php i386 5.2.9-1.el5.remi remi 1.3 M
php-cli i386 5.2.9-1.el5.remi remi 2.4 M
php-common i386 5.2.9-1.el5.remi remi 267 k
php-devel i386 5.2.9-1.el5.remi remi 589 k
php-gd i386 5.2.9-1.el5.remi remi 123 k
php-ldap i386 5.2.9-1.el5.remi remi 36 k
php-mbstring i386 5.2.9-1.el5.remi remi 1.0 M
php-mysql i386 5.2.9-1.el5.remi remi 84 k
php-odbc i386 5.2.9-1.el5.remi remi 52 k
php-pdo i386 5.2.9-1.el5.remi remi 91 k
php-pear noarch 1:1.8.1-1.el5.remi remi 419 k
Installing for dependencies:
mysql-libs i386 5.1.34-1.el5.remi remi 2.1 M
mysqlclient15 i386 5.0.67-1.el5.remi remi 1.3 M
sqlite2 i386 2.8.17-2.el5.remi remi 170 k
t1lib i386 5.1.1-7.el5 epel 194 k

Transaction Summary
==============================================================================================================
Install 5 Package(s)
Update 15 Package(s)
Remove 0 Package(s)

Total size: 28 M
Total download size: 20 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): perl-DBD-mysql-4.010-1.el5.rf.i386.rpm | 221 kB 00:00
(2/6): mysql-bench-5.1.34-1.el5.remi.i386.rpm | 494 kB 00:00
(3/6): mysqlclient15-5.0.67-1.el5.remi.i386.rpm | 1.3 MB 00:02
(4/6): mysql-devel-5.1.34-1.el5.remi.i386.rpm | 3.2 MB 00:10
(5/6): mysql-5.1.34-1.el5.remi.i386.rpm | 3.7 MB 00:09
http://iut-info.univ-reims.fr/remirpms/el5.i386/mysql-server-5.1.34-1.el5.remi.i386.rpm: [Errno 12] Timeout:
Trying other mirror.
http://rpms.famillecollet.com/el5.i386/mysql-server-5.1.34-1.el5.remi.i386.rpm: [Errno 12] Timeout:
Trying other mirror.
--------------------------------------------------------------------------------------------------------------
Total 107 kB/s | 20 MB 03:07

Error Downloading Packages:
mysql-server-5.1.34-1.el5.remi.i386: failure: mysql-server-5.1.34-1.el5.remi.i386.rpm from remi: [Errno 256] No more mirrors to try.

[root@centos ~]# yum --enablerepo=remi,epel,rpmforge update php* mysql*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: ftp.jaist.ac.jp
* remi: rpms.famillecollet.com
* rpmforge: ftp-stud.fht-esslingen.de
* base: www.ftp.ne.jp
* updates: www.ftp.ne.jp
* addons: www.ftp.ne.jp
* extras: www.ftp.ne.jp
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-bench.i386 0:5.1.34-1.el5.remi set to be updated
---> Package php-devel.i386 0:5.2.9-1.el5.remi set to be updated
---> Package php-common.i386 0:5.2.9-1.el5.remi set to be updated
---> Package php-ldap.i386 0:5.2.9-1.el5.remi set to be updated
---> Package php-mbstring.i386 0:5.2.9-1.el5.remi set to be updated
---> Package php-mysql.i386 0:5.2.9-1.el5.remi set to be updated
--> Processing Dependency: libmysqlclient.so.16 for package: php-mysql
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16) for package: php-mysql
---> Package php-gd.i386 0:5.2.9-1.el5.remi set to be updated
--> Processing Dependency: libt1.so.5 for package: php-gd
---> Package php-cli.i386 0:5.2.9-1.el5.remi set to be updated
---> Package mysql.i386 0:5.1.34-1.el5.remi set to be updated
--> Processing Dependency: libmysqlclient.so.15 for package: dovecot
--> Processing Dependency: libmysqlclient.so.15 for package: qt-MySQL
--> Processing Dependency: libmysqlclient.so.15 for package: libdbi-dbd-mysql
--> Processing Dependency: libmysqlclient.so.15 for package: perl-DBD-MySQL
--> Processing Dependency: libmysqlclient.so.15 for package: mod_auth_mysql
--> Processing Dependency: libmysqlclient.so.15 for package: mysql-connector-odbc
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: dovecot
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: qt-MySQL
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: libdbi-dbd-mysql
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: perl-DBD-MySQL
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: mod_auth_mysql
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: mysql-connector-odbc
--> Processing Dependency: libmysqlclient_r.so.15 for package: MySQL-python
--> Processing Dependency: libmysqlclient_r.so.15 for package: mysql-connector-odbc
--> Processing Dependency: libmysqlclient_r.so.15(libmysqlclient_15) for package: MySQL-python
--> Processing Dependency: libmysqlclient_r.so.15(libmysqlclient_15) for package: mysql-connector-odbc
---> Package mysql-devel.i386 0:5.1.34-1.el5.remi set to be updated
---> Package php-pear.noarch 1:1.8.1-1.el5.remi set to be updated
---> Package php.i386 0:5.2.9-1.el5.remi set to be updated
---> Package php-odbc.i386 0:5.2.9-1.el5.remi set to be updated
---> Package php-pdo.i386 0:5.2.9-1.el5.remi set to be updated
--> Processing Dependency: libsqlite.so.0 for package: php-pdo
---> Package mysql-server.i386 0:5.1.34-1.el5.remi set to be updated
--> Running transaction check
---> Package t1lib.i386 0:5.1.1-7.el5 set to be updated
---> Package mysqlclient15.i386 0:5.0.67-1.el5.remi set to be updated
---> Package mysql-libs.i386 0:5.1.34-1.el5.remi set to be updated
---> Package perl-DBD-mysql.i386 0:4.010-1.el5.rf set to be updated
---> Package sqlite2.i386 0:2.8.17-2.el5.remi set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================
Package Arch Version Repository Size
==============================================================================================================
Installing:
perl-DBD-mysql i386 4.010-1.el5.rf rpmforge 221 k
replacing perl-DBD-MySQL.i386 3.0007-2.el5

Updating:
mysql i386 5.1.34-1.el5.remi remi 3.7 M
mysql-bench i386 5.1.34-1.el5.remi remi 494 k
mysql-devel i386 5.1.34-1.el5.remi remi 3.2 M
mysql-server i386 5.1.34-1.el5.remi remi 11 M
php i386 5.2.9-1.el5.remi remi 1.3 M
php-cli i386 5.2.9-1.el5.remi remi 2.4 M
php-common i386 5.2.9-1.el5.remi remi 267 k
php-devel i386 5.2.9-1.el5.remi remi 589 k
php-gd i386 5.2.9-1.el5.remi remi 123 k
php-ldap i386 5.2.9-1.el5.remi remi 36 k
php-mbstring i386 5.2.9-1.el5.remi remi 1.0 M
php-mysql i386 5.2.9-1.el5.remi remi 84 k
php-odbc i386 5.2.9-1.el5.remi remi 52 k
php-pdo i386 5.2.9-1.el5.remi remi 91 k
php-pear noarch 1:1.8.1-1.el5.remi remi 419 k
Installing for dependencies:
mysql-libs i386 5.1.34-1.el5.remi remi 2.1 M
mysqlclient15 i386 5.0.67-1.el5.remi remi 1.3 M
sqlite2 i386 2.8.17-2.el5.remi remi 170 k
t1lib i386 5.1.1-7.el5 epel 194 k

Transaction Summary
==============================================================================================================
Install 5 Package(s)
Update 15 Package(s)
Remove 0 Package(s)

Total size: 28 M
Total download size: 11 M
Is this ok [y/N]: yExiting on user Command
Complete!
[root@centos ~]# yum -y --enablerepo=remi,epel,rpmforge update php* mysql*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: ftp.riken.jp
* remi: rpms.famillecollet.com
* rpmforge: fr2.rpmfind.net
* base: rsync.atworks.co.jp
* updates: rsync.atworks.co.jp
* addons: rsync.atworks.co.jp
* extras: ftp.daum.net
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-bench.i386 0:5.1.34-1.el5.remi set to be updated
---> Package php-ldap.i386 0:5.2.9-1.el5.remi set to be updated
---> Package php-mbstring.i386 0:5.2.9-1.el5.remi set to be updated
---> Package php-mysql.i386 0:5.2.9-1.el5.remi set to be updated
--> Processing Dependency: libmysqlclient.so.16 for package: php-mysql
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16) for package: php-mysql
---> Package php-gd.i386 0:5.2.9-1.el5.remi set to be updated
--> Processing Dependency: libt1.so.5 for package: php-gd
---> Package php-cli.i386 0:5.2.9-1.el5.remi set to be updated
---> Package mysql.i386 0:5.1.34-1.el5.remi set to be updated
---> Package php-devel.i386 0:5.2.9-1.el5.remi set to be updated
--> Processing Dependency: libmysqlclient.so.15 for package: dovecot
--> Processing Dependency: libmysqlclient.so.15 for package: qt-MySQL
--> Processing Dependency: libmysqlclient.so.15 for package: libdbi-dbd-mysql
--> Processing Dependency: libmysqlclient.so.15 for package: perl-DBD-MySQL
--> Processing Dependency: libmysqlclient.so.15 for package: mod_auth_mysql
--> Processing Dependency: libmysqlclient.so.15 for package: mysql-connector-odbc
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: dovecot
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: qt-MySQL
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: libdbi-dbd-mysql
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: perl-DBD-MySQL
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: mod_auth_mysql
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: mysql-connector-odbc
--> Processing Dependency: libmysqlclient_r.so.15 for package: MySQL-python
--> Processing Dependency: libmysqlclient_r.so.15 for package: mysql-connector-odbc
--> Processing Dependency: libmysqlclient_r.so.15(libmysqlclient_15) for package: MySQL-python
--> Processing Dependency: libmysqlclient_r.so.15(libmysqlclient_15) for package: mysql-connector-odbc
---> Package mysql-devel.i386 0:5.1.34-1.el5.remi set to be updated
---> Package php.i386 0:5.2.9-1.el5.remi set to be updated
---> Package php-pear.noarch 1:1.8.1-1.el5.remi set to be updated
---> Package php-odbc.i386 0:5.2.9-1.el5.remi set to be updated
---> Package php-pdo.i386 0:5.2.9-1.el5.remi set to be updated
--> Processing Dependency: libsqlite.so.0 for package: php-pdo
---> Package mysql-server.i386 0:5.1.34-1.el5.remi set to be updated
---> Package php-common.i386 0:5.2.9-1.el5.remi set to be updated
--> Running transaction check
---> Package mysqlclient15.i386 0:5.0.67-1.el5.remi set to be updated
---> Package perl-DBD-mysql.i386 0:4.010-1.el5.rf set to be updated
---> Package mysql-libs.i386 0:5.1.34-1.el5.remi set to be updated
---> Package sqlite2.i386 0:2.8.17-2.el5.remi set to be updated
---> Package t1lib.i386 0:5.1.1-7.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================
Package Arch Version Repository Size
==============================================================================================================
Installing:
perl-DBD-mysql i386 4.010-1.el5.rf rpmforge 221 k
replacing perl-DBD-MySQL.i386 3.0007-2.el5

Updating:
mysql i386 5.1.34-1.el5.remi remi 3.7 M
mysql-bench i386 5.1.34-1.el5.remi remi 494 k
mysql-devel i386 5.1.34-1.el5.remi remi 3.2 M
mysql-server i386 5.1.34-1.el5.remi remi 11 M
php i386 5.2.9-1.el5.remi remi 1.3 M
php-cli i386 5.2.9-1.el5.remi remi 2.4 M
php-common i386 5.2.9-1.el5.remi remi 267 k
php-devel i386 5.2.9-1.el5.remi remi 589 k
php-gd i386 5.2.9-1.el5.remi remi 123 k
php-ldap i386 5.2.9-1.el5.remi remi 36 k
php-mbstring i386 5.2.9-1.el5.remi remi 1.0 M
php-mysql i386 5.2.9-1.el5.remi remi 84 k
php-odbc i386 5.2.9-1.el5.remi remi 52 k
php-pdo i386 5.2.9-1.el5.remi remi 91 k
php-pear noarch 1:1.8.1-1.el5.remi remi 419 k
Installing for dependencies:
mysql-libs i386 5.1.34-1.el5.remi remi 2.1 M
mysqlclient15 i386 5.0.67-1.el5.remi remi 1.3 M
sqlite2 i386 2.8.17-2.el5.remi remi 170 k
t1lib i386 5.1.1-7.el5 epel 194 k

Transaction Summary
==============================================================================================================
Install 5 Package(s)
Update 15 Package(s)
Remove 0 Package(s)

Total size: 28 M
Total download size: 11 M
Downloading Packages:
mysql-server-5.1.34-1.el5.remi.i386.rpm | 11 MB 00:13
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : php-common [ 1/36]
Installing : mysqlclient15 [ 2/36]

WARNING : This mysql RPM is not an official Fedora build and it
overrides the official one. Don't file bugs on Fedora Project.

Installing : mysql-libs [ 3/36]
warning: /etc/my.cnf created as /etc/my.cnf.rpmnew
Updating : mysql [ 4/36]
Installing : perl-DBD-mysql [ 5/36]
Updating : php-cli [ 6/36]
Updating : php [ 7/36]
Installing : sqlite2 [ 8/36]
Updating : php-pdo [ 9/36]
Installing : t1lib [10/36]
Updating : php-ldap [11/36]
Updating : php-devel [12/36]
Updating : php-gd [13/36]
Updating : mysql-bench [14/36]
Updating : php-mbstring [15/36]
Updating : php-pear [16/36]
Updating : mysql-server [17/36]
Updating : php-mysql [18/36]
Updating : php-odbc [19/36]
Updating : mysql-devel [20/36]
Cleanup : mysql [21/36]
Cleanup : php-ldap [22/36]
Cleanup : php-cli [23/36]
Cleanup : php [24/36]
Cleanup : php-devel [25/36]
Cleanup : php-gd [26/36]
Erasing : perl-DBD-MySQL [27/36]
Cleanup : php-common [28/36]
Cleanup : mysql-bench [29/36]
Cleanup : php-mbstring [30/36]
Cleanup : php-pear [31/36]
Cleanup : mysql-server [32/36]
Cleanup : php-mysql [33/36]
Cleanup : php-odbc [34/36]
Cleanup : php-pdo [35/36]
Cleanup : mysql-devel [36/36]

Installed: perl-DBD-mysql.i386 0:4.010-1.el5.rf
Dependency Installed: mysql-libs.i386 0:5.1.34-1.el5.remi mysqlclient15.i386 0:5.0.67-1.el5.remi sqlite2.i386 0:2.8.17-2.el5.remi t1lib.i386 0:5.1.1-7.el5
Updated: mysql.i386 0:5.1.34-1.el5.remi mysql-bench.i386 0:5.1.34-1.el5.remi mysql-devel.i386 0:5.1.34-1.el5.remi mysql-server.i386 0:5.1.34-1.el5.remi php.i386 0:5.2.9-1.el5.remi php-cli.i386 0:5.2.9-1.el5.remi php-common.i386 0:5.2.9-1.el5.remi php-devel.i386 0:5.2.9-1.el5.remi php-gd.i386 0:5.2.9-1.el5.remi php-ldap.i386 0:5.2.9-1.el5.remi php-mbstring.i386 0:5.2.9-1.el5.remi php-mysql.i386 0:5.2.9-1.el5.remi php-odbc.i386 0:5.2.9-1.el5.remi php-pdo.i386 0:5.2.9-1.el5.remi php-pear.noarch 1:1.8.1-1.el5.remi
Replaced: perl-DBD-MySQL.i386 0:3.0007-2.el5
Complete!


ちなみに2回走らせているのは、1回目でリポジトリへのタイムアウトがでたのでリトライしてます(^^;)

これでインストール完了です。

PHPとMySQLを再起動します。

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

それでは、それぞれバージョンを確認します。
# php -v
PHP 5.2.9 (cli) (built: Feb 27 2009 14:42:58)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

# mysql -V
mysql Ver 14.14 Distrib 5.1.34, for redhat-linux-gnu (i686) using readline 5.1

無事にアップデートが完了しているのが確認できます。

で、最初にインストールしたリポジトリですが、他のパッケージを間違ってアップデートしないように削除しておきました。(そのままでもよかったのかな??)

# rpm -e rpmforge-release-0.3.6-1.el5.rf.i386
# rpm -e remi-release-5-6.el5.remi
# rpm -e epel-release-5-3