centos6.7 に php5.1 を入れる

php 関係のrpmをダウンロード

wget http://ftp.riken.jp/Linux/centos/5/updates/x86_64/RPMS/php-5.1.6-45.el5_11.x86_64.rpm
wget http://ftp.riken.jp/Linux/centos/5/updates/x86_64/RPMS/php-cli-5.1.6-45.el5_11.x86_64.rpm
wget http://ftp.riken.jp/Linux/centos/5/updates/x86_64/RPMS/php-common-5.1.6-45.el5_11.x86_64.rpm
wget http://ftp.riken.jp/Linux/centos/5/updates/x86_64/RPMS/php-gd-5.1.6-45.el5_11.x86_64.rpm
wget http://ftp.riken.jp/Linux/centos/5/updates/x86_64/RPMS/php-mbstring-5.1.6-45.el5_11.x86_64.rpm
wget http://ftp.riken.jp/Linux/centos/5/updates/x86_64/RPMS/php-pgsql-5.1.6-45.el5_11.x86_64.rpm
wget http://ftp.riken.jp/Linux/centos/5/updates/x86_64/RPMS/php-xml-5.1.6-45.el5_11.x86_64.rpm
wget http://ftp.riken.jp/Linux/centos/5/updates/x86_64/RPMS/php-pdo-5.1.6-45.el5_11.x86_64.rpm
wget http://ftp.riken.jp/Linux/centos/5/updates/x86_64/RPMS/php-devel-5.1.6-45.el5_11.x86_64.rpm

コンパチ関係のインストール


compat-libcurl wget ftp://rpmfind.net/linux/remi/enterprise/5/remi/x86_64/compat-libcurl3-7.15.5-3.el5.remi.x86_64.rpm rpm -Uvh compat-libcurl3-7.15.5-3.el5.remi.x86_64.rpm libcrypto.so.6 yum install openssl098e-0.9.8e-20.el6.centos.1.x86_64 php-pgsql wget ftp://fr2.rpmfind.net/linux/centos/5.11/os/x86_64/CentOS/postgresql-libs-8.1.23-10.el5_10.x86_64.rpm rpm -Uvh postgresql-libs-8.1.23-10.el5_10.x86_64.rpm

インストール


yum localinstall php-5.1.6-45.el5_11.x86_64.rpm php-devel-5.1.6-45.el5_11.x86_64.rpm php-cli-5.1.6-45.el5_11.x86_64.rpm php-common-5.1.6-45.el5_11.x86_64.rpm php-pdo-5.1.6-45.el5_11.x86_64.rpm yum localinstall php-xml-5.1.6-45.el5_11.x86_64.rpm php-gd-5.1.6-45.el5_11.x86_64.rpm php-pgsql-5.1.6-45.el5_11.x86_64.rpm