Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Hi Guys,

just one little question.

I have a website that is mywebsite.com and a subwebsite totally different that is mywebsite.com/something

I installed a cms for mywebsite.com in mywebsite.com/admin and i would like to install in mywebsite.com/asia/admin another cms to control the asia website.

I would love id the 2 cms would not conflict into each other, if it is possible to separate them and if so if i will need 2 different databases?

Thanks
Emanuele
Hi Emanuele,

You can have any number of Couch installations and they will not conflict *so long as* you give each of them -
1. either a separate database
2. or a different table prefix if the database is the same.

So, suppose your first Couch installation is in http://yoursite.com/couch/ and another is in a subfolder http://yoursite.com/asia/couch/, the two installations can have
1. two different databases
e.g. first one could have
define( 'K_DB_NAME', 'my_db_1' );

while second might have
define( 'K_DB_NAME', 'my_db_2' );

or

2. Both can have the same database (tables of both are in the same database) but have a different table prefix (so as to differentiate between the tables of the two)
e.g. first one could have the following config
define( 'K_DB_NAME', 'my_db' );
// 7b.
// Needed only if multiple instances of this CMS are to be installed in the same database
// (please use only alphanumeric characters or underscore (NO hyphen) )
define( 'K_DB_TABLES_PREFIX', '' );

while the second could have
define( 'K_DB_NAME', 'my_db' );
// 7b.
// Needed only if multiple instances of this CMS are to be installed in the same database
// (please use only alphanumeric characters or underscore (NO hyphen) )
define( 'K_DB_TABLES_PREFIX', 'asia_' );

Notice that in the example above both the installations have the same database but the second installation has a different prefix.

Hope this helps.
2 posts Page 1 of 1
cron