ติดตั้ง php 5.3 ใน centos 5


php 5.3

สำหรับ centos 5 นั้นถ้าเราทำการติดตั้ง php โดย yum ผ่าน repo ที่เขาให้มาปกติ php ที่เราจะได้เป็นเวอร์ชั่น 5.1.6 ถ้าใครอยากอัพเกรดเป็น php เวอร์ชั่นล่าสุดนั้นก็คือ 5.3.2 เรามาดูวิธีกันครับ
 

โดยเราจะทำการติดตั้ง php 5.3 จาก repo ข้างนอกนะครับให้ทำการโหลดมาก่อน

rpm -ivh http://repo.webtatic.com/yum/centos/5/`uname -i`/webtatic-release-5-0.noarch.rpm

จากนั้นทำการติดตั้ง php โดยใช้งานผ่าน repo ที่เราโหลดมาครับ
yum --disablerepo=* --enablerepo=webtatic install php

สำหรับคนที่ติดตั้ง php ไปก่อนแล้วให้ทำการ update ครับ
yum --disablerepo=* --enablerepo=webtatic update php

เพียงเท่านี้ php เราจะกลายเป็น 5.3 แล้ว

php -v
PHP 5.3.2 (cli) (built: Mar  5 2010 15:08:05)

thank : http://www.webtatic.com/blog/2009/06/php-530-on-centos-5/


Comments

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • HTML tags will be transformed to conform to HTML standards.

More information about formatting options

CAPTCHA
คำถามนี้ทดสอบว่าคุณมีความรู้ทางคณิตศาสตร์ ไม่ได้โง่!!!
6 + 6 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.