|
本館粉絲專頁 |
|
|
使用者:Minwei/維基筆記
User:Minwei/維基筆記/系統升級|Mediawiki程式修改 | 維基&rss多媒體外掛
目次 |
[編輯] Upgrade from 1.4.3 to 1.11.x
參考自http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_11_0/phase3/UPGRADE
[編輯] Backup first(先備份)
- 參考資源http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki
- For general help on mysqldump:http://dev.mysql.com/doc/mysql/en/mysqldump.html
[編輯] Perform the file upgrade(檔案升級)
- 保留LocalSettings.php file, AdminSettings.php file (if present),及"extensions"與"images"目錄
- 更新修改過的程式(待整理)
[編輯] Perform the database upgrade(資料庫升級)
- You will need an AdminSettings.php file set up in the correct format; see AdminSettings.sample in the wiki root for more information and examples.
- Major changes have been made to the schema from 1.4.x. The updater has not been fully tested for all conditions, and might well break.
- The current schema for any version - with copious comments - can be found in the maintenance/tables.sql file.
- 參考Manual:Database_layout,整理成Schema轉換
[編輯] Check configuration settings(檢查config設定)
[編輯] Configuration changes from 1.4.x:
$wgDisableUploads has been replaced with $wgEnableUploads.
$wgWhitelistAccount has been replaced by the 'createaccount' permission key in $wgGroupPermissions. To emulate the old effect of setting:
$wgWhitelistAccount['user'] = 0;
set:
$wgGroupPermissions['*']['createaccount'] = false;
$wgWhitelistEdit has been replaced by the 'edit' permission key. To emulate the old effect of setting:
$wgWhitelistEdit = true;
set:
$wgGroupPermissions['*']['edit'] = false;
If $wgWhitelistRead is set, you must also disable the 'read' permission for it to take affect on anonymous users:
$wgWhitelistRead = array( "Main Page", "Special:Userlogin" ); $wgGroupPermissions['*']['read'] = false;
If using Memcached, you must enabled it differently now:
$wgUseMemCached = true;
should be replaced with:
$wgMainCacheType = CACHE_MEMCACHED;
[編輯] Upgrading from pre-1.5 wikis
Message changes:
- A number of additional UI messages have been changed from HTML to wikitext, and will need to be manually fixed if customized.
- 安裝加速器
[編輯] 升級後要修改的程式或頁面
[編輯] Logs瀏覽
[編輯] RSSReader安裝
[編輯] 用戶參數設置修正
獎預設改為中文。
[編輯] 圖片認證
[編輯] {server}
http://www.mediawiki.org/wiki/Manual:%24wgServer
http://www.mediawiki.org/wiki/Manual:%24wgServer/ru這是另外一個語言種+/ru。
http://www.mediawiki.org/wiki/Manual:%24wgServerName
http://www.mediawiki.org/wiki/Manual:%24wgProto
http://www.mediawiki.org/wiki/Help:Links →解答在這!!!必須修改「超連結語法」
[http://{{SERVER}}/pagename]
查\\\\\\\\\\"http://twbsball.dils.tku.edu.tw"字串在頁面裡的數量。約有150筆。
SELECT `cur_text` FROM `cur` WHERE `cur_text` LIKE '%http://twbsball.dils.tku.edu.tw/%'
雖然系統轉換後應該不會有問題。
[編輯] 導航
- 舊版的方式 at User:Yarachen
- 新版的方式,寫在MediaWiki:Sidebar
*導航 **首頁|首頁 **TwBsBall:編輯討論區|編輯討論 **TwBsBall:歷史新聞|歷史新聞 **Special:Recentchanges|最近更改 **Special:Random|隨意翻頁 **Help:幫助|輔助說明 **贊助|贊助頁面 <b>網頁名(路徑)|顯示名稱</b>
原來那些頁面都可以不再使用?
- 參考http://www.mediawiki.org/wiki/Manual:Navigation_bar ,再整理。
*導航 **首頁|首頁 **TwBsBall:編輯討論區|編輯討論 **Special:Recentchanges|最近更改 **棒球新聞|棒球新聞 **棒球專欄|棒球專欄 **台灣棒球影像館|棒球影像 **棒球文物|棒球文物 **Special:Random|隨意翻頁 **Help:幫助輔助說明
[編輯] 介面語言
- 用「language」查到這份文件:http://www.mediawiki.org/wiki/Localisation
- http://www.mediawiki.org/wiki/Manual:%24wgDefaultUserOptions
- http://www.mediawiki.org/wiki/Manual:%24wgLanguageCode ←這個吧@@
[編輯] 新版查詢頁面的方式
之前的Old、Cur及Recentchanges,重新組織成text、page、Recentchanges,查詢不似之前只需要到Cur資料表,改用底下的SQL語法:
最近更改過的頁面 SELECT rc_title, rc_namespace, old_id, old_text FROM `recentchanges` , `text` WHERE old_id = rc_this_oldid AND rc_title LIKE '%首頁%
舊的頁面 SELECT page_title, old_id, old_text FROM `text` , `page` WHERE page_latest = old_id AND page_title LIKE '%首頁%
[編輯] 機器人
可以自動執行一些例行性的功能。