COLO.in.th > คลังความรู้ > Website > PHP > How to Upgrade PHP 5.3 to PHP 5.5 on CentOS 6.8


How to Upgrade PHP 5.3 to PHP 5.5 on CentOS 6.8




ตรวจสอบ PHP version
php -v

Install and activate the REMI and EPEL RPM Repositories
wget http://mirrors.thzhost.com/epel/epel-release-latest-6.noarch.rpm && rpm -Uvh epel-release-latest-6.noarch.rpm
wget http://mirrors.thzhost.com/remi/enterprise/remi-release-6.rpm && rpm -Uvh remi-release-6*.rpm

enable the REMI repository globally:
nano /etc/yum.repos.d/remi.repo
[remi]
name=Remi's RPM repository for Enterprise Linux 6 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/6/remi/$basearch/
mirrorlist=http://rpms.remirepo.net/enterprise/6/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

[remi-php55] name=Remi's PHP 5.5 RPM repository for Enterprise Linux 6 - $basearch #baseurl=http://rpms.remirepo.net/enterprise/6/php55/$basearch/ mirrorlist=http://rpms.remirepo.net/enterprise/6/php55/mirror # NOTICE: common dependencies are in "remi-safe" enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

Update PHP from 5.3 to 5.5
yum -y update php*

ตรวจสอบ PHP version อีกครั้ง
php -v


บทความนี้มีประโยชน์กับคุณหรือไม่ ?

บันทึกสู่รายการโปรดของฉัน บันทึกสู่รายการโปรดของฉัน    พิมพ์หัวข้อนี้ พิมพ์หัวข้อนี้

Also Read
เปิดใช้ SNMP Extension บน PHP (ดูรายละเอียด: 1399)

Powered by WHMCompleteSolution

ภาษา: