How to upgrade a php5.3 version to a php5.4 or php5.5_php instance

Source: Internet
Author: User
Tags fpm install php imap intl ldap mcrypt odbc pear

Today our PHP technical article is mainly for your friends to introduce how to use Yum to install PHP 5.4 or 5.5 version. Of course we use centos6.5 as our test machine. In fact, it is very simple, as long as the following two commands can easily install the PHP version 5.4.

Copy Code code 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-XMLR Pc
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 php54 W-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

Of course, the expansion can be based on your own needs to add or delete oh, as for said php5.5 installation, and php5.4 installation is still the same.

Copy Code code 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 php55 W-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

The above content is this article all said, hoped everybody likes.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.