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.