[分享]從phpBB-2.0.21升級到phpBB-2.0.22(安全性升級)

phpBB Installation & Usage Support
phpBB 2 安裝於各類型作業平台之問題討論;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
cghost
星球普通子民
星球普通子民
文章: 2
註冊時間: 2007-01-26 17:10

[分享]從phpBB-2.0.21升級到phpBB-2.0.22(安全性升級)

文章 cghost »

從phpBB-2.0.21升級到phpBB-2.0.22(安全性升級)
採用patch file方式升級
至官方下載phpBB-2.0.22-patch
http://prdownloads.sourceforge.net/phpb ... -patch.zip

解壓縮後,可參考文件中的
Upgrade from stable releases of phpBB 2.0.x => patch file
phpBB-2.0.22-patch\docsINSTALL.html
先備份phpBB2,
☆更新程式檔案
上傳至相同目錄下,如一同在/home/web中
#patch -cl -d /home/web/phpBB -p1 < phpBB-2.0.21_to_2.0.22.patch
產生如下訊息:
patching file admin/admin_board.php
patching file groupcp.php
patching file includes/functions.php
Hunk #2 succeeded at 918 (offset 1 line).
patching file includes/usercp_email.php
patching file includes/usercp_register.php
patching file language/lang_english/lang_main.php
patching file login.php
patching file memberlist.php
patching file modcp.php
patching file posting.php
Hunk #4 succeeded at 432 (offset 1 line).
Hunk #6 succeeded at 575 (offset 1 line).
Hunk #7 succeeded at 943 (offset 2 lines).
patching file privmsg.php
Hunk #4 succeeded at 1167 (offset 4 lines).
Hunk #5 succeeded at 1386 (offset 1 line).
Hunk #6 succeeded at 1493 (offset 4 lines).
Hunk #7 succeeded at 1533 (offset 1 line).
Hunk #8 succeeded at 1664 (offset 5 lines).
Hunk #9 succeeded at 1747 (offset 1 line).
patching file search.php
patching file templates/subSilver/posting_body.tpl
patching file viewforum.php
patching file viewtopic.php

☆更新Database schema, data, version number
將phpBB-2.0.22-patch中的install, contrib目錄上傳至phpBB2目錄中,
執行http://phpbb2.xxx.com.tw/install/update_to_latest.php
及可看到版本已修正為最新的版本。
此為升級的筆記,如有問題,請指教,謝謝。
參考原文件:
Patch file
The patch file is probably the best solution for those with many Mods or other changes who do not want to re-add them back to all the changed files. To use this you will need command line access to a standard UNIX type patch application.
A number of patch files are provided to allow you to upgrade from previous stable releases. Select the correct patch, e.g. if your current version is 2.0.21 you need the phpBB-2.0.21_to_2.0.22.patch. Place the correct patch in the parent directory containing the phpBB 2 core files (i.e. index.php, viewforum.php, etc.). With this done you should run the following command: patch -cl -d [PHPBB DIRECTORY] -p1 < [PATCH NAME] (where PHPBB DIRECTORY is the directory name your phpBB Installation resides in, for example phpBB2, and where PATCH NAME is the relevant filename of the selected patch file). This should complete quickly, hopefully without any HUNK FAILED comments.
If you do get failures you should look at using the Changed files only package to replace the files which failed to patch, please note that you will need to manually re-add any Mods to these particular files. Alternatively if you know how you can examine the .rej files to determine what failed where and make manual adjustments to the relevant source.
You should of course delete the patch file (or files) after use. As for the other upgrade procedures you should run install/update_to_latest.php after you have finished updating the files. This will update your database schema and data (if appropriate) and increment the version number.
dgkevin
星球公民
星球公民
文章: 58
註冊時間: 2003-08-25 16:19

文章 dgkevin »

請問一下,我的是2.0.21,但是看下面這篇文章,還是搞不太清楚要不要升級,文章中的問題會有嗎?
http://phpbb-tw.net/phpbb/viewtopic.php?t=47294

謝謝
cghost
星球普通子民
星球普通子民
文章: 2
註冊時間: 2007-01-26 17:10

文章 cghost »

sorry
平常少上這兒,
基本上2.0.21=>是有作一些安全性上的更新,
所以,還是更新一下比較好,
關於會不會有您提到該文章之問題,
因為我沒有作這些修改,所以無法回答您!!
dgkevin 寫:請問一下,我的是2.0.21,但是看下面這篇文章,還是搞不太清楚要不要升級,文章中的問題會有嗎?
http://phpbb-tw.net/phpbb/viewtopic.php?t=47294

謝謝
juefede
星球普通子民
星球普通子民
文章: 6
註冊時間: 2007-02-20 06:24

文章 juefede »

請教一下,我的版本是phpBB 2.0.17
我想升級到phpBB 2.0.22用這個程式可以嗎?
appleboy
竹貓忠實會員
竹貓忠實會員
文章: 304
註冊時間: 2002-09-15 21:47
來自: 高雄
聯繫:

文章 appleboy »

juefede 寫:請教一下,我的版本是phpBB 2.0.17
我想升級到phpBB 2.0.22用這個程式可以嗎?
不可以,標題寫的很清楚

除非你的網站很多外掛

不然我在想 直接重新安裝會比較快

不然你就要自己慢慢升級~ :lol:
圖檔
歡迎來到 CodeIgniter 繁體中文討論區
My Blog:小惡魔 - 電腦技術 - 生活日記 - 美食介紹 - AppleBOY
chiouss
竹貓忠實會員
竹貓忠實會員
文章: 1741
註冊時間: 2002-11-29 18:19

文章 chiouss »

juefede 寫:請教一下,我的版本是phpBB 2.0.17
我想升級到phpBB 2.0.22用這個程式可以嗎?
壓縮檔裡面有很多 patch file,請選擇適合你版本的 patch file。
juefede
星球普通子民
星球普通子民
文章: 6
註冊時間: 2007-02-20 06:24

文章 juefede »

感謝兩位回答,另外我想請教兩個問題,不知在這個區域是否適當?
或請告知可在那個地區問?
一、如我要重灌時,如何將舊的2.017的資料庫內容匯入。
二、近來我的論壇常遭廣告程式攻擊,如需加上發言需填入圖象文字的Plug-in,需在那個地方找?
chiouss
竹貓忠實會員
竹貓忠實會員
文章: 1741
註冊時間: 2002-11-29 18:19

文章 chiouss »

juefede 寫:感謝兩位回答,另外我想請教兩個問題,不知在這個區域是否適當?
或請告知可在那個地區問?
一、如我要重灌時,如何將舊的2.017的資料庫內容匯入。
二、近來我的論壇常遭廣告程式攻擊,如需加上發言需填入圖象文字的Plug-in,需在那個地方找?
1. 資料庫不會被覆蓋
2. 請找 captcha 這個關鍵字 (ex. Better Captcha)
pcdiyamd
星球普通子民
星球普通子民
文章: 2
註冊時間: 2004-07-04 12:22

文章 pcdiyamd »

請問不論那種版本升級是不是只要將contrib及inistall資料夾複制到phpbb目錄下
再到網路上升級即可?

因為小弟看不懂教學的這段
上傳至相同目錄下,如一同在/home/web中
#patch -cl -d /home/web/phpBB -p1 < phpBB-2.0.21_to_2.0.22.patch

是要另外去執行它嗎?
謝謝.
juefede
星球普通子民
星球普通子民
文章: 6
註冊時間: 2007-02-20 06:24

文章 juefede »

chiouss 寫:2. 請找 captcha 這個關鍵字 (ex. Better Captcha)
TKS.
目前已升級成功,
且已安裝Visual Confirmation for Guest 成功,
但想安裝Better Captcha卻找不到存在的MOD(都顯示File Not Found),可否指點?
chiouss
竹貓忠實會員
竹貓忠實會員
文章: 1741
註冊時間: 2002-11-29 18:19

文章 chiouss »

但想安裝Better Captcha卻找不到存在的MOD(都顯示File Not Found),可否指點?
請愛用 Google,第一筆點進去就是。
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8540
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 »

juefede 寫:
chiouss 寫:2. 請找 captcha 這個關鍵字 (ex. Better Captcha)
TKS.
目前已升級成功,
且已安裝Visual Confirmation for Guest 成功,
但想安裝Better Captcha卻找不到存在的MOD(都顯示File Not Found),可否指點?
http://phpbb-tw.net/phpbb/viewtopic.php?t=47025
http://www.phpbb.com/community/viewtopic.php?t=473222
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
jeswang.tw
星球普通子民
星球普通子民
文章: 19
註冊時間: 2006-07-31 13:02

文章 jeswang.tw »

我是參考 http://macphpbbmod.sourceforge.net/word ... page_id=62 將 2.0.21 升級到 2.0.22 ,因為我有不少外掛。但是每次進入管理控制台,還是會提醒我得升級,請問修正這個檢查 ?
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8540
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 »

jeswang.tw 寫:我是參考 http://macphpbbmod.sourceforge.net/word ... page_id=62 將 2.0.21 升級到 2.0.22 ,因為我有不少外掛。但是每次進入管理控制台,還是會提醒我得升級,請問修正這個檢查 ?
建議您:
執行最新版 phpBB 2.0.22 資料庫升級檔 update_to_latest.php

參考連結:
http://phpbb-tw.net/phpbb/viewtopic.php?p=247943#247943
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
jeswang.tw
星球普通子民
星球普通子民
文章: 19
註冊時間: 2006-07-31 13:02

文章 jeswang.tw »

心靈捕手 寫:
jeswang.tw 寫:我是參考 http://macphpbbmod.sourceforge.net/word ... page_id=62 將 2.0.21 升級到 2.0.22 ,因為我有不少外掛。但是每次進入管理控制台,還是會提醒我得升級,請問修正這個檢查 ?
建議您:
執行最新版 phpBB 2.0.22 資料庫升級檔 update_to_latest.php

參考連結:
http://phpbb-tw.net/phpbb/viewtopic.php?p=247943#247943
請問,外掛程式很多會新增資料庫欄位,這個 update 會不會造成其他影響 ?
主題已鎖定

回到「phpBB 2 安裝與使用」