2007年4月27日 星期五

如何將WIKI搬家,或複製一份

提供異地備份或mirror site 的方法。根據官方說法,建議在同樣的平台與software的情況下運作。官方網站

步驟如下:
1.備份資料庫。

2.複製全部的wiki 資料。包括skin、 extensions、 LocalSettings.php

3.re-create the database
在新的一台機器建立資料庫名稱,與建立一個 wiki 的使用者,有權限存取wiki 的資料夾。
註:你可以在 LocalSettings.php 查到當初設定的使用者名稱與密碼。$wgDBuser and $wgDBpassword two parameters.

4.import database
可以用 dump的方法,或 phpmyadmin 將資料複製。

5.Import wiki file

6.check the configuration file
See
LocalSettings.php

$IP Needs to be correct for the paths on the new server
$wgScriptPath Needs to be correct for the path on the new server
$wgDBserver Check the database server name is correct
$wgDBname This might have changed in a shared hosting environment
$wgDBuser This might have changed in a shared hosting environment
$wgDBpassword Check this is correct for the new user


沒有留言: