OS:CentOS 5.3
Requirments:
php
1. 新增套件庫
        vi  /etc/yum.repos.d/CentOS-Testing.repo
2. 貼上以下內容
  [c5-testing]
  name=CentOS-5 Testing
  baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
  enabled=1
  gpgcheck=1
  gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
  includepkgs=php*
3. 安裝更新後的PHP套件
        yum  install  php
4. 檢查套件
        rpm  -qa  |  grep  php
5. 從起服務讓環境生效
        /etc/init.d/httpd  restart
參考文章:
http://wiki.centos.org/HowTos/PHP_5.1_To_5.2
 
沒有留言:
張貼留言