十月 08, 2008

[系統] 系統移轉或複製

如果安裝目錄為 lifetype (blog)

1. 拷貝 mysql 的資料庫

xampp 下的 mysql 下的 data 資料夾下的 lifetype (blog) 資料夾。

2. htdocs 下的 lifetype (blog) 資料夾複製

修改資料庫連線帳號、密碼

lifetype(blog) 資料夾內的 config 資料夾 下的 config.properties.php

$config["db_host"] = "localhost";
$config["db_username"] = "root";
$config["db_password"] = "密碼";
$config["db_database"] = "新的資料庫";

3. 使用 phpMyAdmin 去修改新資料庫中

使用 phpMyAdmin 去修改新資料庫中的 lt_config 表格

( 或者用 http://新 IP /lifetype (blog) /admin.php)

修改 全域變數下的 base_url 為新的網址

4. 修改其下的 .htaccess (可以不做)

參考簡易網址文章 (要檢查一下)

RewriteBase /blog

ErrorDocument 401 /blog/error.php
ErrorDocument 403 /blog/error.php
ErrorDocument 404 /blog/error.php

5.清空 LifeType 安裝目錄 ( lifetype or blog ) 下的 tmp 資料夾


最好再備份網站系統的 http.conf 及 php.ini 。

這樣就萬無一失啦!



發佈者: 陳怡杰 老師 at 10:33│  點閱次數 (48)│ 修改文章管理迴響迴響 (0)2008部落格建置班-10月
回應文章
(必要)
authimage