Section
如何將 Centos 5.3 php 5.1.6 升級到 php 5.2.9
(Publish Date: 2009-4-7 9:24am, Total Visits: 5163, Today: 6, This Week: 46, This Month: 25)

小弟我還是趁記得時,趕快記下來,免得下次又忘掉

 


我主要參考http://bluhaloit.wordpress.com/2008/03/13/installing-php-52x-on-redhat-es5-centos-5-etc/

請注意小弟我使用的是i386的版本,如果你用的是x86_64,就請自己改一下,不過最好就不要升級mysql了

1.wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
2.wget http://rpms.famillecollet.com/el5.i386/remi-release-5-6.el5.remi.noarch.rpm
 注意這部份可能有更新的release,要謝謝remi這個人,這些package就是他弄的
3.rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
==============================================================
4.su -
  cd /etc/yum.repos.d
  wget http://rpms.famillecollet.com/remi-enterprise.repo
  (1,2,3有做,4就可以不用做了,也可直接做4)
============================================================== 
5.yum --enablerepo=remi update php 
  開始安裝新的php ,不過我都下yum --enablerepo=remi update  ,全部更新包括mysql

最後 yum --enablerepo=remi install php-mbstring  (這一步是為了安裝phpmyadmin, 如果你不裝phpmyadmin就免了,
當初就是為了phpmyadmin 才要升級 php 到5.2.9)


[Total Users: 1]

I want to comment on it

1

Display: 1 - 1 of 1, Total Pages: 1

bear : 如果要升級到php 5.3以上,請把錯誤的套件要先移除,才有辦法update (2/25) [Reply]