Heim  >  Artikel  >  php教程  >  如何把php5.3版本升级到php5.4或者php5.5

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

WBOY
WBOYOriginal
2016-06-06 19:48:49837Durchsuche

这篇文章主要介绍了如何把php5.3升级到php5.4或者php5.5,需要的朋友可以参考下

今天我们这篇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
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
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

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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn