這個需求看來是很奇怪, 不過為了不遺忘, 還是把他記錄下來, 以免以後又忘光光嘍!!
為什麼會有這個需求呢, 這是起因於本人有一個客戶的主機OS是Linux FedoraCore5, 在WGM專案裡需要使用到UploadProgress這個擴充套件, 而這個套件必須運作在 PHP 5.2up, 所以才會有這個需求嘍!!!
請參考: 使用PHP 5.2以上的UploadProgress來實現上傳進度條功能 (一)
首先, 本人曾試過, 直接從FedoraCore7的Source裡取出PHP5.2.4 RPM套件來安裝, 但是果然發生了相依性的問題, 而相依的套件實在太多, 沒那個勇氣全都反安裝再重裝, 其中還包含了 .so的套件, 所以放棄!!!
接下來去到官方網站 http://php.net 下傳安裝包, 目前最新的版本是PHP 5.2.5(2007/11/18), 但是在preg()的指令上似乎還存在著問題, 所以就改選用PHP 5.2.4的版本來使用, 閱讀了INSTALL的說明後, 安裝程序如下:
安裝apsx (依需求安裝), 請參考 http://www.apsx.com/
在之前的 在Unix Server上運行ASP的可能性....... 裡有提到, 直接安裝 httpd-devel套件即可
# yum install httpd-devel
再使用以下指令即可取得apsx安裝位址
#which apxs (範例為 /usr/sbin/apxs)
接下來安裝linxml & libxml2 (可使用 # rpm -qa |grep libxml 檢查)
# yum install libxml
# yum install libxml-devel
# yum install libxml2
# yum install libxml2-devel
ps. 其餘套件請自行從FC5的RPC光碟裡取出安裝嘍, 這裡不再多說了!!!
接下來下傳 PHP 5.2.4的套件包並解壓縮, 執行安裝程序(如果中途有缺套件, 請再自行安裝)
# ./configure --with-mysql --with-apxs=/usr/sbin/apxs
如果您有啟用Apache2, 請改成 --with-apxs2
完成後再依序執行以下指令
# make
# make install
最後, 重新起動一次 apache, 讓新的設定生效!!!
# service httpd restart
好了, 再執行php_info(); 就看到您的PHP版本已經成功的更新了!!!
系統環境:
OS: Linux FedoraCore5
PHP: 5.1.6 --> 5.2.4





23/07/2010, 13:34
That is why it is far better to wear that type of shoes you are used to for your wedding. prom dressesHowever, make sure that they are pretty and are in complete harmony with your wedding attire. cheap prom dressesBelieve me when I said that, such wedding shoes are not hard to find.hair extensions You can order them online too. Some virtual shops allow you to select two or three different shoe styles and two or three different shoe sizes. cheap wedding invitationsThey will deliver all of them at your doorstep.bridesmaid dresses This allows you to try them all in comfort and select the one you like best and return the rest. It is easy to find these wedding shoes if you look for them. celebrity lace front wigsThey are also sold online. You can trust on me and I say it is true that these shoes are easily available.human hair extensions Best aspect is that they can be ordered online.
28/01/2008, 18:02
這個部份是本人只有需求PHP的升級而做的, 在後面實作完成後, 還有更多的套件需要安裝, 所以特此先聲明清楚..^^