移機er-webs讓我遇到滿多問題,有些地方也模糊不清,
所以我在er-webs端,先安裝了一個xoops,然後下載需要修改的兩個檔案來作比較。

STEP01.xoops.sql(資料庫匯出)
STEP02.mainfile.php

1.請先在er-webs新增一個資料庫localxoops201
2.將我安裝在localhost的xoops的資料庫匯出,我用owner的身分
3.用editplus打開xoops.sql這個檔案,


STEP01修改如下:
------------------------------------------------------------------------------------------------
A.
13行

-- 資料庫:xoops`



-- 資料庫: `使用者名稱_localxoops201`


B.
83.84.85行

INSERT INTO `xoops_banner` VALUES (1, 1, 0, 1, 0, 'http://localhost/xoops/images/banners/xoops_banner.gif', 'http://www.xoops.org/', 1008813250, 0, '');
INSERT INTO `xoops_banner` VALUES (2, 1, 0, 1, 0, 'http://localhost/xoops/images/banners/xoops_banner_2.gif', 'http://www.xoops.org/', 1008813250, 0, '');
INSERT INTO `xoops_banner` VALUES (3, 1, 0, 1, 0, 'http://localhost/xoops/images/banners/banner.swf', 'http://www.xoops.org/', 1008813250, 0, '');



INSERT INTO `xoops_banner` VALUES (1, 1, 0, 1, 0, 'http://mulanmind.er-webs.com/htdocs/localxoops201/images/banners/xoops_banner.gif', 'http://www.xoops.org/', 1008813250, 0, '');
INSERT INTO `xoops_banner` VALUES (2, 1, 0, 1, 0, 'http://mulanmind.er-webs.com/htdocs/localxoops201/images/banners/xoops_banner_2.gif', 'http://www.xoops.org/', 1008813250, 0, '');
INSERT INTO `xoops_banner` VALUES (3, 1, 0, 1, 0, 'http://mulanmind.er-webs.com/htdocs/localxoops201/images/banners/banner.swf', 'http://www.xoops.org/', 1008813250, 0, '');


C.
1220行

INSERT INTO `xoops_users` VALUES (1, '', 'admin', 'allem@gmail.com', 'http://localhost/xoops/', 'blank.gif', 1300025057, '', '', '', 1, '', '', '', '', '202cb962ac59075b964b07152d234b70', 0, 0, 7, 5, 'bcool_flex', 0.0, 1300462968, 'thread', 0, 1, 0, '', '', '', 0);



INSERT INTO `xoops_users` VALUES (1, '', 'admin', 'allem@gmail.com', 'http://mulanmind.er-webs.com/htdocs/localxoops201', 'blank.gif', 1300025057, '', '', '', 1, '', '', '', '', '202cb962ac59075b964b07152d234b70', 0, 0, 7, 5, 'bcool_flex', 0.0, 1300462968, 'thread', 0, 1, 0, '', '', '', 0);


D.
進入er-webs的後台,打開剛剛新增的資料庫localxoops201,全名為 你的使用者名稱_localxoops201
這部分的修改就完成拉!


STEP02.修改如下
用editplus打開mainfile.php這個檔案
-------------------------------------------------------------------------------------------------------------------------------------------
A.
33.34行

// Example: define('XOOPS_ROOT_PATH', 'C:/AppServ/www/xoops');
define('XOOPS_ROOT_PATH', 'C:/AppServ/www/xoops');



// Example: define('XOOPS_ROOT_PATH', '/home/vol12/er-webs.com/使用者名稱/htdocs/localxoops201');
define('XOOPS_ROOT_PATH', '/home/vol12/er-webs.com/使用者名稱/htdocs/localxoops201');


B.
38.39行

// Example: define('XOOPS_URL', 'http://localhost/xoops');
define('XOOPS_URL', 'http://localhost/xoops');



// Example: define('XOOPS_URL', 'mulanmind.er-webs.com/localxoops201');
define('XOOPS_URL', 'http://mulanmind.er-webs.com/localxoops201');


c.
62-84行

// Database
// Choose the database to be used
define('XOOPS_DB_TYPE', 'mysql');


// Table Prefix
// This prefix will be added to all new tables created to avoid name conflict in the database. If you are unsure, just use the default 'xoops'.
define('XOOPS_DB_PREFIX', 'xoops');


// Database Hostname
// Hostname of the database server. If you are unsure, 'localhost' works in most cases.
define('XOOPS_DB_HOST', 'localhost');


// Database Username
// Your database user account on the host
define('XOOPS_DB_USER', 'owner');


// Database Password
// Password for your database user account
define('XOOPS_DB_PASS', '12345');


// Database Name
// The name of database on the host. The installer will attempt to create the database if not exist
define('XOOPS_DB_NAME', 'xoops');



// Database
// Choose the database to be used
define('XOOPS_DB_TYPE', 'mysql');


// Table Prefix
// This prefix will be added to all new tables created to avoid name conflict in the database. If you are unsure, just use the default 'xoops'.
define('XOOPS_DB_PREFIX', 'xoops');


// Database Hostname
// Hostname of the database server. If you are unsure, 'localhost' works in most cases.
define('XOOPS_DB_HOST', 'MySQL 主機名稱');


// Database Username
// Your database user account on the host
define('XOOPS_DB_USER', '使用者名稱');


// Database Password
// Password for your database user account
define('XOOPS_DB_PASS', '使用者密碼');


// Database Name
// The name of database on the host. The installer will attempt to create the database if not exist
define('XOOPS_DB_NAME', '資料庫名稱全名');


上傳到er-webs你放置xoops檔案的資料夾中。完成拉!

arrow
arrow
    全站熱搜

    vmaya 發表在 痞客邦 留言(0) 人氣()