How to Upgrade PHP version 5.4 to 5.5 on CentOS/RHEL 5/6/7

# php -v

 

For CentOS/RHEL 7:
# rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

For CentOS/RHEL 6:
# rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

For CentOS/RHEL 5:
# rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm

 

# yum remove php-common

# yum -y install php55w php55w-opcache
# yum -y install php55w-xml php55w-mcrypt php55w-gd php55w-devel php55w-mysql php55w-intl php55w-mbstring

# /etc/init.d/httpd restart

หมวดหมู่เนื้อหา Blog: