Home >Backend Development >PHP Problem >Detailed explanation of how to install php5.5 with yum
Yum method to install php5.5: first check the currently installed PHP package; then run yum install to install php5.5; finally use the command "yum install php55w-fpm" to install PHP FPM.
Yum installation of PHP5.5,5.6 under Centos
The default version is too low, manual installation requires some Trouble, if you want to use Yum installation, you can use the following solution:
1. Check the currently installed PHP packages
yum list installed | grep php
If there are PHP packages installed, delete them first
yum remove php.x86_64 php-cli.x86_64 php-common.x86_64 php-gd.x86_64 php-ldap.x86_64 php-mbstring.x86_64 php-mcrypt.x86_64 php-mysql.x86_64 php-pdo.x86_64
2.Centos 5.X
rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm CentOs 6.x rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm CentOs 7.X rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
If you want to delete the packages installed above, reinstall
rpm -qa | grep webstatic rpm -e 上面搜索到的包即可
3. Run yum install
yum install php-fpm php55w php55w-cli php55w-common php55w-gd php55w-ldap php55w-mbstring php55w-mcrypt php55w-mysql php55w-pdo
Note: If you want to upgrade to 5.6, just replace the 55w above with 56w.
4. Install PHP FPM
yum install php55w-fpm
Note: If you want to upgrade to 5.6, just replace the above 55w with 56w.
For more related knowledge, please visit PHP Chinese website!
The above is the detailed content of Detailed explanation of how to install php5.5 with yum. For more information, please follow other related articles on the PHP Chinese website!