PHPを使うことになったので、CentOS5.8にPHP5.3をインストールしました。yumコマンド一発です。
# cat /etc/redhat-release CentOS release 5.8 (Final) # # rpm -qa | grep php # # yum install php Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp.iij.ad.jp * epel: ftp.tsukuba.wide.ad.jp * extras: ftp.iij.ad.jp * remi: rpms.famillecollet.com * updates: ftp.iij.ad.jp Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package php.x86_64 0:5.3.14-1.el5.remi set to be updated --> Processing Dependency: php-common = 5.3.14-1.el5.remi for package: php --> Processing Dependency: php-cli = 5.3.14-1.el5.remi for package: php --> Running transaction check ---> Package php-cli.x86_64 0:5.3.14-1.el5.remi set to be updated --> Processing Dependency: libedit.so.0()(64bit) for package: php-cli ---> Package php-common.x86_64 0:5.3.14-1.el5.remi set to be updated --> Running transaction check ---> Package libedit.x86_64 0:2.11-2.20080712cvs.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================== Package Arch Version Repository Size ======================================================================================================================== Installing: php x86_64 5.3.14-1.el5.remi remi 2.8 M Installing for dependencies: libedit x86_64 2.11-2.20080712cvs.el5 epel 80 k php-cli x86_64 5.3.14-1.el5.remi remi 2.6 M php-common x86_64 5.3.14-1.el5.remi remi 1.0 M Transaction Summary ======================================================================================================================== Install 4 Package(s) Upgrade 0 Package(s) Total download size: 6.5 M Is this ok [y/N]: y Downloading Packages: http://ftp.tsukuba.wide.ad.jp/Linux/fedora/epel/5/x86_64/libedit-2.11-2.20080712cvs.el5.x86_64.rpm: [Errno 14] HTTP Error 404: Not Found Trying other mirror. (1/4): libedit-2.11-2.20080712cvs.el5.x86_64.rpm | 80 kB 00:00 (2/4): php-common-5.3.14-1.el5.remi.x86_64.rpm | 1.0 MB 00:03 (3/4): php-cli-5.3.14-1.el5.remi.x86_64.rpm | 2.6 MB 00:04 (4/4): php-5.3.14-1.el5.remi.x86_64.rpm | 2.8 MB 00:04 ------------------------------------------------------------------------------------------------------------------------ Total 481 kB/s | 6.5 MB 00:13 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction WARNING : These php-* RPM are not official Fedora/Redhat build and overrides the official ones. Don't file bugs on Fedora Project nor Redhat. Use dedicated forums http://forums.famillecollet.com/ Installing : php-common 1/4 Installing : libedit 2/4 Installing : php-cli 3/4 Installing : php 4/4 Installed: php.x86_64 0:5.3.14-1.el5.remi Dependency Installed: libedit.x86_64 0:2.11-2.20080712cvs.el5 php-cli.x86_64 0:5.3.14-1.el5.remi php-common.x86_64 0:5.3.14-1.el5.remi Complete! # # rpm -qa | grep php php-common-5.3.14-1.el5.remi php-cli-5.3.14-1.el5.remi php-5.3.14-1.el5.remi # php -v PHP 5.3.14 (cli) (built: Jun 14 2012 21:26:11) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies