CentOS6.5安裝指定的PHP版本(php5.5)

來源:互聯網
上載者:User

標籤:ora   centos6.5   fedora   node   proc   class   board   pre   too   

查詢是否安裝有php

[cpp] view plain copy
  1. #rpm -qa|grep php  


刪除之前安裝的php版本 (yum install 安裝)

[cpp] view plain copy
  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  


更新源

[cpp] view plain copy
  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  


查看php版本列表

[plain] view plain copy
  1. #yum list php*  


安裝php及相關軟體

[plain] view plain copy

#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安裝指定的PHP版本(php5.5)(轉)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.