Linux system CentOS Install the specified version of PHP using Yum mode add Yum source from PHP53 to 54/55/56

Source: Internet
Author: User
Tags php software yum repolist
The default version is too low, manual installation has some trouble, want to use Yum install the following scenarios can be used:
First remove the old version of PHP,
Pass yum list installed | grep phpcan view all installed PHP software
Use yum remove php...... Delete

By yum list php* looking for the version you need to install, if you don't need to add a third-party yum Source, we recommend installing Webtatic, Rpmforge, and 163 of the domestic

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//rpmforge#32位:  wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm  rpm -ivh rpmforge-release-0.5.1-1.el5.rf.i386.rpm  #64位:  wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm  rpm -ivh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm  

After the installation is complete, you can use Yum repolist to see which sources have been installed, or by ls /etc/yum.repos.d/ viewing them.
Then again yum install php55w or yum install php54w or yum install php56w ... You can install a new version of PHP.

The above describes the Linux system CentOS using the Yum method to install the specified version of the PHP add Yum source from PHP53 upgrade to 54/55/56, including aspects of the content, I hope to be interested in PHP tutorial friends helpful.

  • Related Article

    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.