よくよく調べたら、CentOS 5.8 で PHP5.3 をインストールすることができるようなので、その方法。
前回インストールしたPHP関連のパッケージをアンインストールする。
# yum remove php php-cli php-common php-pdo php-mbstring php-mysql
Loaded plugins: fastestmirror
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.1.6-39.el5_8 set to be erased
---> Package php-cli.x86_64 0:5.1.6-39.el5_8 set to be erased
---> Package php-common.x86_64 0:5.1.6-39.el5_8 set to be erased
---> Package php-mbstring.x86_64 0:5.1.6-39.el5_8 set to be erased
---> Package php-mysql.x86_64 0:5.1.6-39.el5_8 set to be erased
---> Package php-pdo.x86_64 0:5.1.6-39.el5_8 set to be erased
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Removing:
php x86_64 5.1.6-39.el5_8 installed 6.3 M
php-cli x86_64 5.1.6-39.el5_8 installed 5.3 M
php-common x86_64 5.1.6-39.el5_8 installed 397 k
php-mbstring x86_64 5.1.6-39.el5_8 installed 1.8 M
php-mysql x86_64 5.1.6-39.el5_8 installed 196 k
php-pdo x86_64 5.1.6-39.el5_8 installed 114 k
Transaction Summary
====================================================================================================================================
Remove 6 Package(s)
Reinstall 0 Package(s)
Downgrade 0 Package(s)
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : php-mysql 1/6
Erasing : php-pdo 2/6
Erasing : php-cli 3/6
Erasing : php-mbstring 4/6
Erasing : php 5/6
Erasing : php-common 6/6
Removed:
php.x86_64 0:5.1.6-39.el5_8 php-cli.x86_64 0:5.1.6-39.el5_8 php-common.x86_64 0:5.1.6-39.el5_8
php-mbstring.x86_64 0:5.1.6-39.el5_8 php-mysql.x86_64 0:5.1.6-39.el5_8 php-pdo.x86_64 0:5.1.6-39.el5_8
Complete!
で、次のコマンドで PHP5.3をインストールする。
# yum install php53 php53-mbstring php53-mysql
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: rsync.atworks.co.jp
* extras: ftp.iij.ad.jp
* updates: rsync.atworks.co.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php53.x86_64 0:5.3.3-13.el5_8 set to be updated
--> Processing Dependency: php53-cli = 5.3.3-13.el5_8 for package: php53
--> Processing Dependency: php53-common = 5.3.3-13.el5_8 for package: php53
---> Package php53-mbstring.x86_64 0:5.3.3-13.el5_8 set to be updated
---> Package php53-mysql.x86_64 0:5.3.3-13.el5_8 set to be updated
--> Processing Dependency: php53-pdo for package: php53-mysql
--> Running transaction check
---> Package php53-cli.x86_64 0:5.3.3-13.el5_8 set to be updated
---> Package php53-common.x86_64 0:5.3.3-13.el5_8 set to be updated
---> Package php53-pdo.x86_64 0:5.3.3-13.el5_8 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Installing:
php53 x86_64 5.3.3-13.el5_8 updates 1.3 M
php53-mbstring x86_64 5.3.3-13.el5_8 updates 1.2 M
php53-mysql x86_64 5.3.3-13.el5_8 updates 93 k
Installing for dependencies:
php53-cli x86_64 5.3.3-13.el5_8 updates 2.4 M
php53-common x86_64 5.3.3-13.el5_8 updates 606 k
php53-pdo x86_64 5.3.3-13.el5_8 updates 68 k
Transaction Summary
====================================================================================================================================
Install 6 Package(s)
Upgrade 0 Package(s)
Total download size: 5.6 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): php53-pdo-5.3.3-13.el5_8.x86_64.rpm | 68 kB 00:00
(2/6): php53-mysql-5.3.3-13.el5_8.x86_64.rpm | 93 kB 00:00
(3/6): php53-common-5.3.3-13.el5_8.x86_64.rpm | 606 kB 00:00
(4/6): php53-mbstring-5.3.3-13.el5_8.x86_64.rpm | 1.2 MB 00:00
(5/6): php53-5.3.3-13.el5_8.x86_64.rpm | 1.3 MB 00:00
(6/6): php53-cli-5.3.3-13.el5_8.x86_64.rpm | 2.4 MB 00:00
------------------------------------------------------------------------------------------------------------------------------------
Total 2.7 MB/s | 5.6 MB 00:02
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : php53-common 1/6
Installing : php53-cli 2/6
Installing : php53-pdo 3/6
Installing : php53-mbstring 4/6
Installing : php53-mysql 5/6
Installing : php53 6/6
Installed:
php53.x86_64 0:5.3.3-13.el5_8 php53-mbstring.x86_64 0:5.3.3-13.el5_8 php53-mysql.x86_64 0:5.3.3-13.el5_8
Dependency Installed:
php53-cli.x86_64 0:5.3.3-13.el5_8 php53-common.x86_64 0:5.3.3-13.el5_8 php53-pdo.x86_64 0:5.3.3-13.el5_8
Complete!
0 件のコメント:
コメントを投稿