php.i386 5.1.6-27.el5_5.3 updates
php-bcmath.i386 5.1.6-27.el5_5.3 updates
php-cli.i386 5.1.6-27.el5_5.3 updates
php-common.i386 5.1.6-27.el5_5.3 updates
php-dba.i386 5.1.6-27.el5_5.3 updates
...........
最後google找到這篇:
http://forum.icst.org.tw/phpbb/viewtopic.php?f=16&t=19416
要先設定好yum的url
rpm –import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
vim /etc/yum.repos.d/CentOS-Base.repo
並將下面內容加到最後
[utterramblings]
name=Jason’s Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
再來執行
yum update php -y
若原本不存在PHP,則要執行
yum install php -y
不過我的情況是,我先執行過了底下的指令
yum -y install httpd mysql-server php php-devel php-mysql
httpd及mysql等和php相關的package都先安裝舊的版本,造成一直失敗,所以先移掉mysql
yum remove mysql
再執行
yum -y install httpd mysql-server php php-devel php-mysql
即可成功了。
================
使用Cent OS 6.2後,用以上的yum server設定一直有以下的error,直接執行最後的一道指令即可安裝php 5.3.3
[root@xxxx sbin]# yum install apacheLoaded plugins: fastestmirror
Determining fastest mirrors
* base: mirror01.idc.hinet.net
* extras: mirror01.idc.hinet.net
* updates: mirror01.idc.hinet.net
base | 3.7 kB 00:00
base/primary_db | 4.5 MB 00:00
extras | 3.5 kB 00:00
extras/primary_db | 8.9 kB 00:00
updates | 3.5 kB 00:00
updates/primary_db | 3.6 MB 00:00
http://www.jasonlitka.com/media/EL6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: utterramblings. Please verify its path and try again
================
使用Cent OS 6.2後,用以上的yum server設定一直有以下的error,直接執行最後的一道指令即可安裝php 5.3.3
[root@xxxx sbin]# yum install apacheLoaded plugins: fastestmirror
Determining fastest mirrors
* base: mirror01.idc.hinet.net
* extras: mirror01.idc.hinet.net
* updates: mirror01.idc.hinet.net
base | 3.7 kB 00:00
base/primary_db | 4.5 MB 00:00
extras | 3.5 kB 00:00
extras/primary_db | 8.9 kB 00:00
updates | 3.5 kB 00:00
updates/primary_db | 3.6 MB 00:00
http://www.jasonlitka.com/media/EL6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: utterramblings. Please verify its path and try again
沒有留言:
張貼留言