php 5.1 > php 5.2 으로 업그레이드 하기

 

php 5.1 > php5.2 으로 업그레이드 하기

yum설치를 기본으로 한다.

]# yum update php

yum으로 php를 업데이트 해보면.. 최신버전은 5.1.6 이 설치된다.

php 5.2 으로 업데이트를 하려면 yum 저장소를 추가해야한다.

]# vi /etc/yum.repos.d/CentOS-Testing.repo
# CentOS-Testing:
# !!!! CAUTION !!!!
# This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras.
# They may or may not replace core CentOS packages, and are not guaranteed to function properly.
# These packages build and install, but are waiting for feedback from testers as to
# functionality and stability. Packages in this repository will come and go during the
# development period, so it should not be left enabled or used on production systems without due
# consideration.
[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*

위와 같이 저장소를 추가하고

]# yum update php

해보면 php 5.2.10 가 설치된다.

물론 서버 재시작 해줘야 한다.

]# service httpd restart

phpinfo() 으로 확인해보자..ㅋ

참고 : http://wiki.centos.org/HowTos/PHP_5.1_To_5.2

 

This entry was posted in PHP/ASP, WEB/WAS and tagged , , , , , , . Bookmark the permalink.

댓글 남기기