Changing Domain Name

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
Felix
Forum Members
Forum Members
Posts: 54
Joined: Wed Oct 31, 2007 11:32 pm

Changing Domain Name

Post by Felix »

Hi,
I've read the post from Sandaha and reply from Veldun regarding changing the domain name. I'm using CMSMS 1.11.10 and one of Darko Tomic's templates tpl-buddy-004 and from what I've read it seems fairly clear that all I have to do is change the site name in Site Admin/Global Settings/General Settings, then ask my hosting company to point the new domain name to the server.

Yet I'm hesitant. It seems too simple!

Is that really all there is to do or have I missed something?

Cheers (and TIA)

Felix
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Changing Domain Name

Post by paulbaker »

Some settings in config.php in the root will need to change, specifically $config['root_url'].

If it is staying on the same host as it is currently, then that's about it. If you're moving servers you need to follow:
http://docs1.cmsmadesimple.org/moving

When it's working you need to upgrade:
http://docs1.cmsmadesimple.org/upgradin ... nformation
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Changing Domain Name

Post by velden »

config.php changes depend on current config. e.g. root_url seems to be optional since version .... (I don't know).

Always: clear cache after changing domain name:
Clear the Cache:
Login to admin, go to Site Admin/System Maintenance and clear the cache
Felix
Forum Members
Forum Members
Posts: 54
Joined: Wed Oct 31, 2007 11:32 pm

Re: Changing Domain Name

Post by Felix »

Thanks guys,

It looks to me that the config.php file doesn't need to be changed because it's only a few lines:
<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysqli';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'xxxxx';
$config['db_password'] = 'yyyyy';
$config['db_name'] = 'zzzzz';
$config['db_prefix'] = 'cms_';
$config['timezone'] = 'Australia/Melbourne';
$config['url_rewriting'] = 'mod_rewrite';
?>

So I'll clear the cache, backup the site and database files, change the sitename in Global settings, then hit the blue button on my webhost to change their DNS mapping. Then clear the cache again a couple of hours afterwards.

Thanks for your help.

Felix
Felix
Forum Members
Forum Members
Posts: 54
Joined: Wed Oct 31, 2007 11:32 pm

Re: Changing Domain Name

Post by Felix »

If anyone is interested - yes this worked fine.

Other site-based modules needed to be updated, including formbuilder, cmsmailer and sitemapmadesimple.

All good.

Cheers,

Felix
Post Reply

Return to “The Lounge”