PHP 5.3 降為 5.2
  • 7,236 views,
  • 2013-09-05,
  • 上傳者: Kuann Hung,
  •  0
更新:
 
因為下面的網址已經移除了,所以可以下載 php-5.2-x64 並根據以下指令安裝囉!
yum install libXpm.so.4 libt1.so.5 autoconf automake gd

rpm -ivh php-5.2.17-1.el6.art.x86_64.rpm
rpm -ivh php-cli-5.2.17-1.el6.art.x86_64.rpm
rpm -ivh php-common-5.2.17-1.el6.art.x86_64.rpm
rpm -ivh php-devel-5.2.17-1.el6.art.x86_64.rpm

rpm -ivh php-gd-5.2.17-1.el6.art.x86_64.rpm
rpm -ivh php-ldap-5.2.17-1.el6.art.x86_64.rpm
rpm -ivh php-mbstring-5.2.17-1.el6.art.x86_64.rpm
rpm -ivh php-mysql-5.2.17-1.el6.art.x86_64.rpm
rpm -ivh php-pdo-5.2.17-1.el6.art.x86_64.rpm
rpm -ivh php-xml-5.2.17-1.el6.art.x86_64.rpm
rpm -ivh t1lib-5.1.2-6.el6_2.1.x86_64.rpm

; 避免 yum 更新到 php 做以下設定
vi /etc/yum.conf
加入
exclude=php*
 
 
-- 以下作法因為網址已移除,所以沒辦法用了!! --------------------------------
; 查詢 php rpm 並移除

rpm -qa | grep php

rpm -e --nodeps phpxxxx

; 32bit

rpm -ivh  http://www6.atomicorp.com/channels/atomic/centos/6/i386/RPMS/php-common-5.2.17-1.el6.art.i686.rpm
rpm -ivh  http://www6.atomicorp.com/channels/atomic/centos/6/i386/RPMS/php-cli-5.2.17-1.el6.art.i686.rpm
rpm -ivh  http://www6.atomicorp.com/channels/atomic/centos/6/i386/RPMS/php-5.2.17-1.el6.art.i686.rpm


rpm -ivh  http://www6.atomicorp.com/channels/atomic/centos/6/i386/RPMS/php-mbstring-5.2.17-1.el6.art.i686.rpm
rpm -ivh  http://www6.atomicorp.com/channels/atomic/centos/6/i386/RPMS/php-devel-5.2.17-1.el6.art.i686.rpm
rpm -ivh  http://www6.atomicorp.com/channels/atomic/centos/6/i386/RPMS/php-ldap-5.2.17-1.el6.art.i686.rpm

rpm -ivh  http://www6.atomicorp.com/channels/atomic/centos/6/i386/RPMS/php-xml-5.2.17-1.el6.art.i686.rpm
rpm -ivh  http://www6.atomicorp.com/channels/atomic/centos/6/i386/RPMS/php-pdo-5.2.17-1.el6.art.i686.rpm

yum install libXpm.so.4 libt1.so.5 autoconf automake

rpm -ivh  http://www6.atomicorp.com/channels/atomic/centos/6/i386/RPMS/php-gd-5.2.17-1.el6.art.i686.rpm
rpm -ivh  http://www6.atomicorp.com/channels/atomic/centos/6/i386/RPMS/php-mysql-5.2.17-1.el6.art.i686.rpm



; 64bit

rpm -ivh http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/php-common-5.2.17-1.el6.art.x86_64.rpm
rpm -ivh http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/php-cli-5.2.17-1.el6.art.x86_64.rpm
rpm -ivh http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/php-5.2.17-1.el6.art.x86_64.rpm


rpm -ivh http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/php-mbstring-5.2.17-1.el6.art.x86_64.rpm
rpm -ivh http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/php-devel-5.2.17-1.el6.art.x86_64.rpm
rpm -ivh http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/php-ldap-5.2.17-1.el6.art.x86_64.rpm
rpm -ivh http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/php-xml-5.2.17-1.el6.art.x86_64.rpm
rpm -ivh http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/php-pdo-5.2.17-1.el6.art.x86_64.rpm

rpm -ivh http://mirror.centos.org/centos/6/os/x86_64/Packages/t1lib-5.1.2-6.el6_2.1.x86_64.rpm
rpm -ivh http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/php-mysql-5.2.17-1.el6.art.x86_64.rpm

rpm -ivh http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/php-gd-5.2.17-1.el6.art.x86_64.rpm

vi /etc/php.ini
把 short_open_tag = Off 改成 On
service httpd restart

; 避免 yum 更新到 php 做以下設定
vi /etc/yum.conf
加入
exclude=php*
Facebook 討論區載入中...
資料夾 :
標籤 :
發表時間 :
2013-09-05 16:58:02
觀看數 :
7,236
發表人 :
Kuann Hung
部門 :
老洪的 IT 學習系統
QR Code :