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.