CentOS5にphp5.2を入れる方法

フランスのremiというレポジトリを使う。有り難い。

rpm ?import http://rpms.famillecollet.com/RPM-GPG-KEY-remi
cd /etc/yum.repos.d
wget http://rpms.famillecollet.com/remi-enterprise.repo
yum update php

このままだと常時remiを参照しにいくので、
MySQLだけremiのお世話になりたい場合は

vi /etc/yum.repos.d/remi-enterprise.repo で
[remi] のenabled=1をenabled=0にすれば自動的に読みに行かない。
yum ?enablerepo=remi update phpで読みに行く。
dependecy(依存性)エラーが出るならば最後のphpは除いて実行する。

カテゴリー: 未分類   パーマリンク 拍手する

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

*

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <img localsrc="" alt="">