1
carrie
changing hosts
  • 2003/11/26 17:55

  • carrie

  • Just popping in

  • Posts: 58

  • Since: 2003/6/12


I currently have my website located at my .net domain. I have bought a .com domain and have it located at a different host than my .net domain. I would like to move my site over to my .com domain. What is the easiest way to do that? I would like to move it so that no one loses their post counts and that the other content (downloads, static pages, etc.) stay in place. Any ideas? Thanks!

2
tom
Re: changing hosts
  • 2003/11/26 20:44

  • tom

  • Friend of XOOPS

  • Posts: 1359

  • Since: 2002/9/21


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.

3
inferno
Re: changing hosts
  • 2003/12/22 19:19

  • inferno

  • Just popping in

  • Posts: 28

  • Since: 2003/12/13


Quote:

tom wrote:

If you are keeping all the files on the same Host/server then this step is not needed:



What do you mean?
I have an account at 50free.com
I am switching fromhttp://cyberfingers.50free.org tohttp://www.cyberfingers.com will i need to change just the url?

4
tom
Re: changing hosts
  • 2003/12/22 20:52

  • tom

  • Friend of XOOPS

  • Posts: 1359

  • Since: 2002/9/21


OK what I mean is are you just directing the URL to same location where all your files are hosted, or are you moving hosts/servers.

If you simply changing domain names then just edit the mainfile.php to reflect the new domain name.

5
Wilkinsa
Re: changing hosts
  • 2003/12/22 20:53

  • Wilkinsa

  • Just popping in

  • Posts: 47

  • Since: 2003/4/13


Ok well if your moving from a cpanel host to a new cpanel host as long as you are not moving backwords in versions of cpanel you should be able to ask the Host to move your entire account over to the new server or to a different account on the server you are already on. I am speaking from expereince as a web host I have moved many a site in my time Most hosts will do this for free cause its a ez process.

Adam

6
inferno
Re: changing hosts
  • 2003/12/23 10:08

  • inferno

  • Just popping in

  • Posts: 28

  • Since: 2003/12/13


nah ftp is ok for me
but yeah i am changing hosts, i guess, cause the files are in different locations...

7
inferno
Re: changing hosts
  • 2003/12/23 15:33

  • inferno

  • Just popping in

  • Posts: 28

  • Since: 2003/12/13


thanks guys, transfer went really smoothly

8
inferno
Re: changing hosts
  • 2003/12/23 15:40

  • inferno

  • Just popping in

  • Posts: 28

  • Since: 2003/12/13


ummm, now for some reason i can't delete photo's from myAlbum-P 2.0, i'll check it out...

9
Herko
Re: changing hosts
  • 2003/12/23 15:49

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


Make sure you have set all folder and file access rights correctly. Not just for the XOOPS core, but also for every module (see the module documentation for more info about that)

Herko

10
inferno
Re: changing hosts
  • 2003/12/23 16:22

  • inferno

  • Just popping in

  • Posts: 28

  • Since: 2003/12/13


i don't know what happened, i don't really care

i just delete them through the admin menu. i didn't chmod any dir's and none of them got changed, i donno, but i don't care. thanks neway

Login

Who's Online

251 user(s) are online (153 user(s) are browsing Support Forums)


Members: 0


Guests: 251


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits