1
melsen
Moving a Xoops site - Need some help please...
  • 2007/1/14 11:59

  • melsen

  • Just popping in

  • Posts: 97

  • Since: 2003/6/22


Alright... I'm on the verge of moving my XOOPS sites from one place to another.

The problem tho is that I cant give the databases the sites were created with the same name on the new place... because it's at a hosting company, and all databases made there will be with the prefix _username_ and then DB name..

So.. how do I move the site and reconfigure files and so on to access the database with the new name?
Allan Melsen
[size=x-small]Founder of R.I.A.[/size]

Renegade Insane Asylum

2
seolio
Re: Moving a Xoops site - Need some help please...
  • 2007/1/14 12:12

  • seolio

  • Not too shy to talk

  • Posts: 196

  • Since: 2005/11/2


Just reconfigure mainfile.php!
You will need to change the path to the server, e.g.
define('XOOPS_ROOT_PATH''usr/home/username/public_html');

Then change the database details, hostname should in most cases stay the same, username, just put your new username and then your new password, and finally the database name you were worried about.
Look around about line 143
// 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''username_user');



    
// Database Password

    // Password for your database user account

    
define('XOOPS_DB_PASS''password');



    
// Database Name

    // The name of database on the host. The installer will attempt to create the database if not exist

    
define('XOOPS_DB_NAME''username_xoops');

Make sure you keep the table prefix the same!
If you do get stuck I will give you a hand as I was in your position once!
Cheers
~seolio~

3
DarinAllan
Re: Moving a Xoops site - Need some help please...

If it's a site migration I found this tutorial invaluable, may clear some things up.

WarpigW2 Site migration Tutorial

4
melsen
Re: Moving a Xoops site - Need some help please...
  • 2007/1/14 13:42

  • melsen

  • Just popping in

  • Posts: 97

  • Since: 2003/6/22


Quote:

seolio wrote:

If you do get stuck I will give you a hand as I was in your position once!
Cheers
~seolio~




Thanks man.. I appreciate that a great deal....
Allan Melsen
[size=x-small]Founder of R.I.A.[/size]

Renegade Insane Asylum

Login

Who's Online

297 user(s) are online (223 user(s) are browsing Support Forums)


Members: 0


Guests: 297


more...

Donat-O-Meter

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

Latest GitHub Commits