PHPのインストールの履歴

PHPをソースからインストール

CentOSに最新のPHPを入れる

Les RPM de Remi で公開されている野良レポジトリを使う。
http://blog.famillecollet.com/

$ wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
$ wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
$ sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

$ sudo yum --enablerepo=remi,epel update mysql*
$ sudo yum --enablerepo=remi,epel update php

Oracleが公開してるRPMを使う

wget http://oss.oracle.com/projects/php/dist/files/EL5/i386/php-oci8-11gR1-5.1.6-24.el5.i386.rpm
wget http://oss.oracle.com/projects/php/dist/files/EL5/i386/php-oci8-11gR2-5.1.6-24.el5.i386.rpm
wget http://oss.oracle.com/projects/php/dist/files/EL5/i386/php52-5.2.10-2.el5.i386.rpm
wget http://oss.oracle.com/projects/php/dist/files/EL5/i386/php52-bcmath-5.2.10-2.el5.i386.rpm
wget http://oss.oracle.com/projects/php/dist/files/EL5/i386/php52-cli-5.2.10-2.el5.i386.rpm
wget http://oss.oracle.com/projects/php/dist/files/EL5/i386/php52-common-5.2.10-2.el5.i386.rpm
wget http://oss.oracle.com/projects/php/dist/files/EL5/i386/php52-dba-5.2.10-2.el5.i386.rpm
wget http://oss.oracle.com/projects/php/dist/files/EL5/i386/php52-devel-5.2.10-2.el5.i386.rpm
wget http://oss.oracle.com/projects/php/dist/files/EL5/i386/php52-gd-5.2.10-2.el5.i386.rpm
wget http://oss.oracle.com/projects/php/dist/files/EL5/i386/php52-imap-5.2.10-2.el5.i386.rpm
wget http://oss.oracle.com/projects/php/dist/files/EL5/i386/php52-ldap-5.2.10-2.el5.i386.rpm
wget http://oss.oracle.com/projects/php/dist/files/EL5/i386/php52-mysql-5.2.10-2.el5.i386.rpm
wget http://oss.oracle.com/projects/php/dist/files/EL5/i386/php52-ncurses-5.2.10-2.el5.i386.rpm
wget http://oss.oracle.com/projects/php/dist/files/EL5/i386/php52-oci8-11gR1-5.2.10-2.el5.i386.rpm
wget http://oss.oracle.com/projects/php/dist/files/EL5/i386/php52-odbc-5.2.10-2.el5.i386.rpm
wget http://oss.oracle.com/projects/php/dist/files/EL5/i386/php52-pdo-5.2.10-2.el5.i386.rpm
wget http://oss.oracle.com/projects/php/dist/files/EL5/i386/php52-pgsql-5.2.10-2.el5.i386.rpm
wget http://oss.oracle.com/projects/php/dist/files/EL5/i386/php52-snmp-5.2.10-2.el5.i386.rpm
wget http://oss.oracle.com/projects/php/dist/files/EL5/i386/php52-soap-5.2.10-2.el5.i386.rpm
wget http://oss.oracle.com/projects/php/dist/files/EL5/i386/php52-xml-5.2.10-2.el5.i386.rpm
wget http://oss.oracle.com/projects/php/dist/files/EL5/i386/php52-xmlrpc-5.2.10-2.el5.i386.rpm

sudo yum install autoconf213
sudo yum erase php*
(phpファイルがあるとそれを読み取るのでないところで指定する)

rpm -i *.rpm


mbstringがない!

wget http://museum.php.net/php5/php-5.2.10.tar.gz
tar zxvf php-5.2.10.tar.gz
cd php-5.2.10/ext/mbstring
phpize
./configure --with-php-config=/usr/bin/php-config
make
sudo make install

sudo vi /etc/php.d/mbstring.ini
----
extension=mbstring.so