COLO.in.th > คลังความรู้ > Website > PHP > How to Upgrade PHP 5.3 to PHP 5.5 on CentOS 6.8
ตรวจสอบ PHP versionphp -v
Install and activate the REMI and EPEL RPM Repositorieswget 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.5yum -y update php*
ตรวจสอบ PHP version อีกครั้งphp -v
บันทึกสู่รายการโปรดของฉัน พิมพ์หัวข้อนี้
Powered by WHMCompleteSolution