Technical

[Upgrade] php 5.2 with yum on Centos

posted on 24 Jul 2009 05:08 by totiz  in Technical

  ณ. ตอนนี้ทาง Centos หรือ Redhat บน Web server ทั้งหลายสามารถอัดเตด php ได้สูงสุดที่
version 5.1.6 หากอัพเตดผ่าน yum โดยปกติ

  แต่ว่า repository ของ remi สามารถอัดเตดเป็น version 5.2 ได้ผ่าน yum โดยทำตามนี้

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

แล้วก็ทำการ restart httpd(apache)

service httpd restart
# php -v
PHP 5.2.10 (cli) (built: Jun 21 2009 11:10:43)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

เพียงเท่านี้ก็เรียบร้อย  หากใครมีปัญหาก็โพสถามไว้ได้นะครับ

ที่มา: http://bluhaloit.wordpress.com/