2
1). searching the forums, this has been asked many times, but here is the info.
If you are keeping all the files on the same Host/server then this step is not needed:
Backup you MySQL DB using your fave tool, ie PHPMYAdmin
in the new database then dump the backup in.
Next step edit the mainfile.php in the XOOPS Dir., here is a sample of a mainfile.php
Quote:
if ( !defined("XOOPS_MAINFILE_INCLUDED") ) {
define("XOOPS_MAINFILE_INCLUDED",1);
// XOOPS Physical Path
// Physical path to your main XOOPS directory WITHOUT trailing slash
define('XOOPS_ROOT_PATH', '/homepages/ROOTPATH');
// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
define('XOOPS_URL', 'http://www.mydomain.com');
// 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', 'TABLEPRE');
// 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', 'DBUSER');
// Database Password
// Password for your database user account
define('XOOPS_DB_PASS', 'DBPASS');
// Database Name
// The name of database on the host. The installer will attempt to create the database if not exist
define('XOOPS_DB_NAME', 'DBNAME');
// Use persistent connection? (Yes=1 No=0)
// Default is 'Yes'. Choose 'Yes' if you are unsure.
define('XOOPS_DB_PCONNECT', 1);
define('XOOPS_GROUP_ADMIN', '1');
define('XOOPS_GROUP_USERS', '2');
define('XOOPS_GROUP_ANONYMOUS', '3');
if (!isset($xoopsOption['nocommon'])) {
include XOOPS_ROOT_PATH."/include/common.php";
}
}
If you are only changing the domain name and not hosts/server then simply edit the following to your domain:
define('XOOPS_URL', 'http://www.mydomain.com');
If your moving hosts/server you also need to move all the XOOPS files across
If your moving hosts/server then you need to edit the other lines too, ie DBname, DBpass, etc, etc.
Hope this is of help.