Home > Article > Backend Development > How to upgrade php5.3 version to php5.4 or php5.5, php5.3php5.4_PHP tutorial
Today our technical article on php is mainly introduced to our friends. How to use yum to install version 5.4 or 5.5 of php. Of course we use centos6.5 as our test machine. In fact, it is very simple. You can easily install version 5.4 of PHP with the following two commands.
Copy code The code is as follows:
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 php 54w-pear php54w-pecl-igbinary php54w-xml php54w-xmlrpc php54w-opcache php54w-intl php54w-pecl-memcache
Of course, if it is extended, you can add or delete it according to your own needs. As for the installation of php5.5, it is still similar to the installation of php5.4.
Copy code The code is as follows:
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 php 55w-pear php55w-pecl-igbinary php55w-xml php55w-xmlrpc php55w-opcache php55w-intl php55w-pecl-memcache
The above content is all stated in this article, I hope you all like it.