Home  >  Article  >  Backend Development  >  Upgrading php under CentOS65

Upgrading php under CentOS65

WBOY
WBOYOriginal
2016-08-08 09:21:011362browse

When I deployed the cloud server environment recently, I used the CentOS 6.5 system, which used php.5.3.3 by default. However, this is a bit slow, so I tried to upgrade it.

The following methods are from the Internet and have been tested and available

1. Remove previously installed php related files

<span>yum remove php  php</span><span>-</span><span>bcmath php</span><span>-</span><span>cli php</span><span>-</span><span>common  php</span><span>-</span><span>devel php</span><span>-</span><span>fpm    php</span><span>-</span><span>gd php</span><span>-</span><span>imap  php</span><span>-</span><span>ldap php</span><span>-</span><span>mbstring php</span><span>-</span><span>mcrypt php</span><span>-</span><span>mysql   php</span><span>-</span><span>odbc   php</span><span>-</span><span>pdo   php</span><span>-</span><span>pear  php</span><span>-</span><span>pecl</span><span>-</span><span>igbinary  php</span><span>-</span><span>xml php</span><span>-</span><span>xmlrpc</span>

2. Install rpm

<span>rpm </span><span>-</span><span>Uvh</span><span> http</span><span>:</span><span>//mirror.webtatic.com/yum/el6/latest.rpm</span>

3. Install php5.5

<pre class="brush:php;toolbar:false"><span>yum install php55w  php55w</span><span>-</span><span>bcmath php55w</span><span>-</span><span>cli php55w</span><span>-</span><span>common  php55w</span><span>-</span><span>devel php55w</span><span>-</span><span>fpm    php55w</span><span>-</span><span>gd php55w</span><span>-</span><span>imap  php55w</span><span>-</span><span>ldap php55w</span><span>-</span><span>mbstring php55w</span><span>-</span><span>mcrypt php55w</span><span>-</span><span>mysql   php55w</span><span>-</span><span>odbc   php55w</span><span>-</span><span>pdo   php55w</span><span>-</span><span>pear  php55w</span><span>-</span><span>pecl</span><span>-</span><span>igbinary  php55w</span><span>-</span><span>xml php55w</span><span>-</span><span>xmlrpc php55w</span><span>-</span><span>opcache php55w</span><span>-</span><span>intl php55w</span><span>-</span><span>pecl</span><span>-</span><span>memcache</span>

The above introduces the upgrade of PHP under CentOS65, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

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
Previous article:PHP FastCGI RCE VulNext article:PHP FastCGI RCE Vul