歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux綜合 >> 學習Linux

Centos6.5升級PHP5.5

Centos6.5升級PHP5.5

Centos6.5升級PHP5.5


1、升級前檢測當前PHP版本
# php -v2、檢查當前php的安裝包
#yum list installed | grep php3、檢查當前PHP的安裝包由於默認的YUM源無法升級PHP,所以需要添加第三方的YUM源,此處用到webtatic。因為是CentOS 6.5,所以用以下URL# rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm如果是CentOS 7.xrpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpmrpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
4、查看YUM源上能用PHP安裝包# yum list php*
5、運行yum install# yum install php55w.x86_64 php55w-cli.x86_64 php55w-common.x86_64 php55w-gd.x86_64 php55w-ldap.x86_64 php55w-mbstring.x86_64 php55w-mcrypt.x86_64 php55w-mysql.x86_64 php55w-pdo.x86_64

http://xxxxxx/Linuxjc/1184750.html TechArticle

Copyright © Linux教程網 All Rights Reserved