[分享]從phpBB-2.0.21升級到phpBB-2.0.22(安全性升級)
版主: 版主管理群
版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
[分享]從phpBB-2.0.21升級到phpBB-2.0.22(安全性升級)
從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.
採用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.
sorry
平常少上這兒,
基本上2.0.21=>是有作一些安全性上的更新,
所以,還是更新一下比較好,
關於會不會有您提到該文章之問題,
因為我沒有作這些修改,所以無法回答您!!
平常少上這兒,
基本上2.0.21=>是有作一些安全性上的更新,
所以,還是更新一下比較好,
關於會不會有您提到該文章之問題,
因為我沒有作這些修改,所以無法回答您!!
dgkevin 寫:請問一下,我的是2.0.21,但是看下面這篇文章,還是搞不太清楚要不要升級,文章中的問題會有嗎?
http://phpbb-tw.net/phpbb/viewtopic.php?t=47294
謝謝
http://phpbb-tw.net/phpbb/viewtopic.php?t=47025juefede 寫:TKS.chiouss 寫:2. 請找 captcha 這個關鍵字 (ex. Better Captcha)
目前已升級成功,
且已安裝Visual Confirmation for Guest 成功,
但想安裝Better Captcha卻找不到存在的MOD(都顯示File Not Found),可否指點?
http://www.phpbb.com/community/viewtopic.php?t=473222
-
jeswang.tw
- 星球普通子民

- 文章: 19
- 註冊時間: 2006-07-31 13:02
我是參考 http://macphpbbmod.sourceforge.net/word ... page_id=62 將 2.0.21 升級到 2.0.22 ,因為我有不少外掛。但是每次進入管理控制台,還是會提醒我得升級,請問修正這個檢查 ?
建議您: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
-
jeswang.tw
- 星球普通子民

- 文章: 19
- 註冊時間: 2006-07-31 13:02
請問,外掛程式很多會新增資料庫欄位,這個 update 會不會造成其他影響 ?心靈捕手 寫:建議您: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



