How to set the php5.5 version: 1. Open the terminal command window; 2. Install php5.5 through the "yum install php55w php55w-bcmath php55w-cli php55w-common php55w-devel..." command. Can.
The operating environment of this article: centos6.5 system, PHP5.5 version, DELL G3 computer
How to set the php5.5 version ? How to upgrade php5.3 version to php5.4 or php5.5?
Today our PHP technical article mainly introduces to friends how to use yum to install PHP version 5.4 or 5.5. 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.
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 php54w-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 similar to the installation of php5.4. .
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 php55w-pear php55w-pecl-igbinary php55w-xml php55w-xmlrpc php55w-opcache php55w-intl php55w-pecl-memcache
The above content is all described in this article, I hope you all like it.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of How to set php5.5 version. For more information, please follow other related articles on the PHP Chinese website!