Feeds:
文章
留言

Archive for the ‘yum’ Category

CentOS 5 升級 PHP 5.2.x

CentOS 5 官方 yum update 只能升到 5.1.6 ,
透過下列方式,
升級到 PHP 5.2.x 。

http://www.atomicorp.com/wiki/index.php/PHP

wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh
 
記得備份一下 /etc/php.ini 吧!
 

Read Full Post »

CentOs 5.3 升級 PHP 5.2

CentOS 5.3 的 yum 升級 PHP 只能到 5.1.x,
對於有 PHP 5.2 需求的人真的很不方便,
慶幸有人已經把 CentOS 5.3 將 PHP 升級到 5.2 的 套件包 做好了,
安裝起來也很容易。

# 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
# rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
# yum –enablerepo=remi update php mysql

最後要升級時,
要連 mysql 和 php 一起升級,
不然會產生錯誤。

Read Full Post »

CentOS 升級 PHP 5

CentOS 4.5 ~ 4.7 Server 版的CD都是安裝 PHP 4.3,
但是目前 PHP 5 已經可以說無他不可了,
所以就手動將 PHP 4.3 升到 PHP 5.1 。

因為 PHP 5 在 yum 裡面是在 [centosplus] 套件中,
所以我們要先允許進行 [centosplus] 的套件升級:

# vi /etc/yum.repos.d/CentOS-Base.repo

將 enabled=0 改為 enabled=1

# yum install php

接下來就進行 yum 把 PHP 進行升級到 5 的動作了。

Read Full Post »