CentOS6.5 installing the specified PHP version (php5.5)

Source: Internet
Author: User
Tags ldap pear

Query if PHP is installed

[CPP]View PlainCopy
    1. #rpm-qa|grep PHP


Delete previously installed PHP version (yum install)

[CPP]View PlainCopy
  1. #rpm-E php-fpm-5.3.3-47.el6.x86_64--nodeps
  2. #rpm-E php-common-5.3.3-47.el6.x86_64--nodeps
  3. #rpm-E php-cli-5.3.3-47.el6.x86_64--nodeps
  4. #rpm-E php-odbc-5.3.3-47.el6.x86_64--nodeps
  5. #rpm-E php-xml-5.3.3-47.el6.x86_64--nodeps
  6. #rpm-E Php-pear-1.9.4-5.el6.noarch--nodeps
  7. #rpm-E php-mbstring-5.3.3-47.el6.x86_64--nodeps
  8. #rpm-E php-ldap-5.3.3-47.el6.x86_64--nodeps
  9. #rpm-E php-bcmath-5.3.3-47.el6.x86_64--nodeps
  10. #rpm-E php-pecl-redis-2.2.8-1.el6.x86_64--nodeps
  11. #rpm-E php-pdo-5.3.3-47.el6.x86_64--nodeps
  12. #rpm-E php-gd-5.3.3-47.el6.x86_64--nodeps
  13. #rpm-E php-mysql-5.3.3-47.el6.x86_64--nodeps
  14. #rpm-E php-xmlrpc-5.3.3-47.el6.x86_64--nodeps
  15. #rpm-E php-pecl-igbinary-1.2.1-1.el6.x86_64--nodeps


Update source

[CPP]View PlainCopy
    1. #rpm-UVH https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
    2. #rpm-UVH https://mirror.webtatic.com/yum/el6/latest.rpm


View a list of PHP versions

[Plain]View PlainCopy
    1. #yum List php*


Install PHP and related software

[Plain]View PlainCopy

#yum Install php55w.x86_64 php55w-fpm.x86_64 php55w-mysql.x86_64 php55w-gd.x86_64 libjpeg* php55w-ldap.x86_64 php55w-odbc.x86_64 php55w-pear.noarch php55w-xml.x86_64 php55w-xmlrpc.x86_64 php55w-mbstring.x86_64 Php55w-bcmath.x86_64 Php-mhash

CentOS6.5 installing the specified PHP version (php5.5) (RPM)

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.