如何把php5.3版本升級到php5.4或者php5.5
更新時間:2015年07月31日 10:43:36 投稿:mrr
這篇文章主要介紹了如何把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 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
以上內容就是本文的全部所述,希望大家喜歡。
您可能感興趣的文章:
相關文章
PHP使用range協(xié)議實現輸出文件斷點續(xù)傳代碼實例
這篇文章主要介紹了PHP使用range協(xié)議實現輸出文件斷點續(xù)傳代碼實例,需要的朋友可以參考下2014-07-07
PHP中使用file_get_contents post數據代碼例子
這篇文章主要介紹了PHP中使用file_get_contents post數據代碼例子,本文直接給出代碼實例,需要的朋友可以參考下2015-02-02
dhtmlxTree目錄樹增加右鍵菜單以及拖拽排序的實現方法
本篇文章介紹了,dhtmlxTree目錄樹增加右鍵菜單以及拖拽排序的實現方法。需要的朋友參考下2013-04-04

