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
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
2. Install rpm
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
3. Install php5.5
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-memcacheCopy after login
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.