July 2010  |  01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

CentOS5.xのPHPをphp-5.2.xに

JUGEMテーマ:コンピュータ

CentOS5 に REMI のリポジトリからPHPをインストールしたところ、php-5.3.2 になってしまった。
まだ、未対応のアプリもあるので php-5.2.x にしたいところ。 Utter Ramblings のリポジットリの PHPが5.2.12 になっているので、インストールしてみた。

その前に、Remi からインストールした php-5.3.2 を削除する。
# yum  --enablerepo=remi remove  php*

まず、Utter Ramblings のリポジットリからGPG-KEYインポート
# rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
次にreposファイルの作成。次の内容で、/etc/yum.repos.d/utterramblings.repo をつくる。
[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
そして、インストール。
# yum -y --enablerepo=utterramblings install php
あとは、適宜必要なモジュールなりアプリなりをインストールする。

# yum -y --enablerepo=utterramblings install php-apc php-gd php-mbstring php-pdo php-pear php-pgsql php-snmp php-soap
ついでに、httpd も更新しておく。
# yum  --enablerepo=utterramblings update httpd
実は、mod_ssl もインストールしたかったのが、Utter Ramblings レポジトリから入れられる。
# yum  --enablerepo=utterramblings install mod_ssl

» read more
1
pagetop