[Solved]Two cms point to the same database

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
tomaszgaluszka
Forum Members
Forum Members
Posts: 12
Joined: Thu Oct 03, 2013 7:35 am

[Solved]Two cms point to the same database

Post by tomaszgaluszka »

Hello,
I want to know it is possible have two cms which will be using the same database ?

--
Thanks
Last edited by tomaszgaluszka on Fri Dec 19, 2014 12:06 pm, edited 1 time in total.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1922
Joined: Mon Jan 29, 2007 4:47 pm

Re: Two cms point to the same database

Post by Jo Morg »

Yes, just use different table prefixes for each (there is a config.php entry for that). Consult the file CMSMS_config_reference.pdf inside the doc folder, for further info.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Two cms point to the same database

Post by Dr.CSS »

If you use the same prefix on both it will make duplicate sites, if you want to use one DB for 2 separate installs you need to use 2 different prefixes which will make it hard to export if ever needed...
User avatar
magallo
Dev Team Member
Dev Team Member
Posts: 109
Joined: Thu Mar 24, 2011 12:37 am

Re: Two cms point to the same database

Post by magallo »

You can connect one database to 2 cmcms installations. You can share the exact same database with the same data if during the installation of the second site you don't create new tables but just reference to the database. Keep in mind that changes made in site 1 will effect site 2
tomaszgaluszka
Forum Members
Forum Members
Posts: 12
Joined: Thu Oct 03, 2013 7:35 am

Re: Two cms point to the same database

Post by tomaszgaluszka »

I want second installation of cms working on another server to provide content ,without access to administrators area.
Users can get access to administration area only from one place.

Thanks a lot.
Locked

Return to “[locked] Installation, Setup and Upgrade”