Page 1 of 1

Changing Domain Name

Posted: Mon Mar 28, 2016 12:09 pm
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

Re: Changing Domain Name

Posted: Mon Mar 28, 2016 3:49 pm
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

Re: Changing Domain Name

Posted: Mon Mar 28, 2016 5:15 pm
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

Re: Changing Domain Name

Posted: Mon Mar 28, 2016 10:54 pm
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

Re: Changing Domain Name

Posted: Tue Mar 29, 2016 3:22 am
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