xoops forums

AlexSolo

Not too shy to talk
Posted on: 2009/10/19 19:23
AlexSolo
AlexSolo (Show more)
Not too shy to talk
Posts: 145
Since: 2006/3/8 1
#1

Does changing the domain name of a site affect an Xoops install.

Have a site: "something.com" with a folder structure of :something.com/htdocs (Xoops). Want to rename the site: somethingelse.com.
How will this affect the installation of XOOPS in the /htdocs/ folder? Just renaming the site via a control panel, not renaming the associated database.

djynnius

Just popping in
Posted on: 2009/10/19 20:05
djynnius
djynnius (Show more)
Just popping in
Posts: 59
Since: 2006/10/21
#2

Re: Does changing the domain name of a site affect an Xoops install.

You'll need to edit mainfile.php to reflect the changes you have made to get it to work right.

// Physical path to the XOOPS documents (served) directory WITHOUT trailing slash
define( 'XOOPS_ROOT_PATH', 'rootpath/htdocs' );

// For forward compatibility
// Physical path to the XOOPS library directory WITHOUT trailing slash
define( 'XOOPS_PATH', 'rootpath/specialfolder/xoops_lib' );
// Physical path to the XOOPS datafiles (writable) directory WITHOUT trailing slash
define( 'XOOPS_VAR_PATH', 'rootpath/specialfolder/xoops_data' );
// Alias of XOOPS_PATH, for compatibility, temporary solution
define("XOOPS_TRUST_PATH", XOOPS_PATH);

// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
// Example: define( 'XOOPS_URL', 'http://somthingelse.com' );
define( 'XOOPS_URL', 'http://somthingelse.com' );

AlexSolo

Not too shy to talk
Posted on: 2009/10/19 20:29
AlexSolo
AlexSolo (Show more)
Not too shy to talk
Posts: 145
Since: 2006/3/8 1
#3

Re: Does changing the domain name of a site affect an Xoops install.

Thanks, I was hoping it was that simple but I thought I'd ask before screwing things up.

ghia

Community Support Member
Posted on: 2009/10/19 22:34
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#4

Re: Does changing the domain name of a site affect an Xoops install.

In principle it is only the URL definitions in mainfile.php.

If you change directory, also the physical files must be changed.

Some modules may have also preferences with URL's or paths.

In some theme and configuration files or content (forum, articles), full URL links may contain the old domain name.
To correct the theme files, search in a backup trough the files for the old name, replace with the new and reupload.
To correct the content, search for the old domain in the database backup (SQL text).

AlexSolo

Not too shy to talk
Posted on: 2009/10/19 22:53
AlexSolo
AlexSolo (Show more)
Not too shy to talk
Posts: 145
Since: 2006/3/8 1
#5

Re: Does changing the domain name of a site affect an Xoops install.

Ah ha! More complicated than first indicated. I will check those files BEFORE I do the change to see where I may need to tweak . thanks ghia.