- mysql 4.1.21 升級 5.0.27
- php 4.4.4 升級 5.2.0
- apache 2.0.59 升級 2.2.4
- activeperl 5.8.7 升級 5.8.8 (這不是WordPress必要的)
WordPress 由 1.5.2 升級 2.1.0,只要跑一次 wp-admin/upgrade.php 就好了,plugin 要一個一個試看看比較複雜;由於是在另一台試,好了再切換電腦上線,所以外部連進來沒什麼中斷的感覺. php 的部份有個地方要特別記一下,5.0 以上版本 php.ini 中要加上時區的設定,不然沒有時區會以 gmt 為主,某些時間顯示會少 8 小時
[date]
date.timezone = Asia/Taipei
記憶用量少了,而且速度好像更快了些,看起來蠻 ok 的,如果有發現什麼問題請告知.
升級最大理由是:新出的 plugin 都指名要 2.x,不升級就沒得用啦.
UPDATE — 2/21/2007
本格又升級 WordPress 2.1.1 了.
“Version 2.1.1 includes about 30 bug fixes, mostly minor things around encoding, XML-RPC, the object cache, and HTML code.”
UPDATE — 3/3/2007
又來了,WordPress 2.1.1 dangerous, Upgrade to 2.1.2 — “This morning we received a note to our security mailing address about unusual and highly exploitable code in WordPress. The issue was investigated, and it appeared that the 2.1.1 download had been modified from its original code. We took the website down immediately to investigate what happened.”
UPDATE — 4/4/2007
WordPress 2.1.3 — include fixes for several publicly known minor XSS issues, one major XML-RPC issue, and a proactive full sweep of the WordPress codebase to protect against future problems.








February 3rd, 2007 at 11:39 pm 1
哈哈,忍不住了吧。我還在等 WPG2…
February 4th, 2007 at 11:48 pm 2
發現一個小問題
“GET /wp/wp-content/plugins/popularity-contest.php?ak_action=css HTTP/1.1″ 404
404? 升級之前都是 200 ok 的.
那個程式內用
if (!empty($_GET[’ak_action’])) {
switch($_GET[’ak_action’]) {
if 就沒過了. 試了
if (isset($_GET[’ak_action’])) {
也是一樣.
同學有沒有什麼idea? 跟 WordPress 是無關的,是 apache or php?
February 5th, 2007 at 10:41 am 3
404 不是那個 PHP 程式給的吧。我猜是那個檔名中的 “-” 讓 Apache 找不到檔案了。Windows files system 的關係?
February 5th, 2007 at 11:14 am 4
不是吧,升級前同檔名找得到,而且我在 if 前後加了 trace 也有出來. 不懂 php…
程式在 http://alexking.org/projects/wordpress/plugins/popularity-contest.zip
更奇的是,我在另一台回到 apache 2.0.59 + php 4.4.4 問題一樣,看來是 wordpress 2.1 的影響?!
February 5th, 2007 at 9:48 pm 5
哦,猜錯了。
這個 404 是那裡來的?我直接從你的站抓那個檔,它有回 CSS 內容啊。
February 5th, 2007 at 9:59 pm 6
這麼神奇?我自己直接捉也不行啊… 沒有 css 內容,找不到網頁.
看 log,你也不行啊
65.196.xx.yy - - [05/Feb/2007:21:44:05 +0800] “GET /wp/wp-content/plugins/popularity-contest.php?ak_action=css HTTP/1.1″ 404 336
奇怪.
February 5th, 2007 at 10:11 pm 7
真的...跟 2.1 有關. 在 apache 2.2 + php 5.2.0 + wordpress 1.5.2:
192.168.1.8 - - [05/Feb/2007:22:07:21 +0800] “GET /wp/wp-content/plugins/popularity-contest.php?ak_action=css HTTP/1.1″ 200 336
同學,你 php 強,研究一下是哪個 function 不相容了…
February 5th, 2007 at 11:13 pm 8
我用 Firefox 看,header 的確是給了 404 但是還是有內容回來。我看了一下它的程式,它在處理簡單的 css 要求時還是叫用了整套的 WP init。WP2.1 的一些預設值和 2.0 不一樣,所以 WP 的 ‘error’ 變數一直都有個 404 在裡面沒有清掉。WP 的 init 會自動送 header,也順便送了 404 回來。
正確的改法是把它處理 css 要求的部分移到最前面,用 if($_GET[’ak_action’]==’css’) 包起來。這樣不會浪費時間在完全沒有用到的 WP 碼。
我 php 強?這種不是 strict data typing 的 scripting language 用起來真的很奇怪。每次用都很想咬人…
February 5th, 2007 at 11:53 pm 9
在裝 wordpress 之前,完全沒碰過 php,對於這種程式我也很頭大,程式資料全部混在一塊,光是要對好 < ?php 跟 ?> 就痛苦死了.
遵照指示改好了,謝謝. (果然是強,很會咬)
February 21st, 2007 at 7:10 pm 10
本格又升級 WordPress 2.1.1 了…
February 21st, 2007 at 10:21 pm 11
啊?一覺睡醒,2.1.1 就出了…
March 3rd, 2007 at 7:48 am 12
又來了2.1.2
March 3rd, 2007 at 2:08 pm 13
這個下載檔案被駭了還真是少見。還好 2.0 版沒被動到。
April 4th, 2007 at 10:18 pm 14
2.1.3來了
April 9th, 2007 at 6:33 am 15
WPG2 終於有 2.1 可以用的版本了,我也終於升級了。
http://www.ju-ju.com/2007/04/07/new-function/