Home  >  Article  >  Backend Development  >  如何把php5.3版本升级到php5.4或者php5.5_PHP

如何把php5.3版本升级到php5.4或者php5.5_PHP

WBOY
WBOYOriginal
2016-05-30 08:47:231460browse

今天我们这篇php的技术文章主要为各位朋友们介绍如何使用yum进行安装php的5.4或者5.5版本。当然我们使用centos6.5作为我们的测试机器。其实非常简单,只要下面的两个命令就可以轻松的进行安装php的5.4版本了。

代码如下:


yum remove php php-bcmath php-cli php-common php-devel php-fpm
 php-gd php-imap php-ldap php-mbstring php-mcrypt php-mysql  php-odbc  php-pdo  php-pear php-pecl-igbinary php-xml php-xmlrpc
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
yum install php54w php54w-bcmath php54w-cli php54w-common php54w-devel php54w-fpm  php54w-gd php54w-imap php54w-ldap php54w-mbstring php54w-mcrypt php54w-mysql  php54w-odbc  php54w-pdo  php54w-pear php54w-pecl-igbinary php54w-xml php54w-xmlrpc php54w-opcache php54w-intl php54w-pecl-memcache

当然扩展的话,可以根据你自己的需要进行添加或者删除哦,至于说php5.5的安装,跟php5.4的安装还是大同小异的哦。

代码如下:


yum remove php php-bcmath php-cli php-common php-devel php-fpm  php-gd php-imap php-ldap php-mbstring php-mcrypt php-mysql  php-odbc  php-pdo  php-pear php-pecl-igbinary php-xml php-xmlrpc
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
yum install php55w php55w-bcmath php55w-cli php55w-common php55w-devel php55w-fpm  php55w-gd php55w-imap php55w-ldap php55w-mbstring php55w-mcrypt php55w-mysql  php55w-odbc  php55w-pdo  php55w-pear php55w-pecl-igbinary php55w-xml php55w-xmlrpc php55w-opcache php55w-intl php55w-pecl-memcache

以上内容就是本文的全部所述,希望大家喜欢。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn