Page 1 of 1

[solved]2 CMSMS sites running on the same Web server ?

Posted: Fri Oct 24, 2008 12:30 pm
by dvh
Using the Mysql Dump module, I have exported the DB from a site and I would like to import it on another machine that is already running CMSMS on Apache/Windows.
Is is as simple as reinstalling (or copying) CMSMS under a diffetent root folder under httdocs ?
Can I do a find/replace of all 'cms_' prefixes from the SQL script to load it into the new root name ?
i.e. got the backup using 'cms_'
I create a new folder 'site2' under which I install CMSMS, do find/replaceall 'cms_' with 'site2_', create a second MySQL DB using 'site2_' prefix then reload DB from the site2 admin page and voilĂ  ?
Then I would access the 2 sites from urls : www.my_dom.com/cms et www.my_dom.com/site2 ...
I am not using tiny url.

Re: 2 CMSMS sites running on the same Web server ?

Posted: Fri Oct 24, 2008 12:56 pm
by alby
dvh wrote: I create a new folder 'site2' under which I install CMSMS, do find/replaceall 'cms_' with 'site2_', create a second MySQL DB using 'site2_' prefix then reload DB from the site2 admin page and voilĂ  ?
If you use a second DB is useless replace cms_ in site2_ . You MUST if you use same DB (overwrite tables)
In site2 run install/index.php but uncheck write tables and sample content (in step 5 about), this write a correct config.php for your new site


Alby

Re: 2 CMSMS sites running on the same Web server ?

Posted: Fri Oct 24, 2008 3:13 pm
by Pierre M.

Re: [solved]2 CMSMS sites running on the same Web server ?

Posted: Thu Oct 30, 2008 4:55 pm
by dvh
Thanks to the 2 of you. Got it working. ;D