Home > php教程 > php手册 > 如何把php5.3版本升级到php5.4或者php5.5,php5.3php5.4

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

WBOY
Release: 2016-06-13 08:56:40
Original
740 people have browsed it

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

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template