[Vtigercrm-developers] Multi-tenant configuration for VT6 ?
apcloic
apcloic at gmail.com
Mon Mar 23 11:36:26 GMT 2015
Hi All,
I'm trying to build a multi-tenant installation (1 VT6 --> multiple DB).
Depending on the host / url served, it's easy to select config file by
replacing the original config.inc.php with something like this :
<code>
<?php
switch ($_SERVER [ 'SERVER_NAME' ])
{
case "mydomain1.com":
include_once("config.inc.mydomain1.php");
break;
case "mydomain2.com":
include_once("config.inc.mydomain2.php");
break;
default:
die ("server not used to run vTigerCRM");
}
?>
In each domain specific config.inc file, there is options to set db,
cache_dir, tmp_dir, etc. which is fine.
However, there is no option to define paths for :
parent_tabdata.php
tabdata.php
user_privileges folder
logs folder
logo folder
...
So to give a try using a test environment, I've added 4 variables to
config.inc.mydomain1.php :
parent_tabdata_path = /path/to/parent_tabdata_file
tabdata_path = /path/to/parent_tabdata_file
user_privileges_path = /path/to/user_privileges_folder
logo = /path/to/logo_folder
logs = /path/to/logs_folder
Then, I've modified all hardcoded path references to these files & folders
and to include my variables.
Everything seems to run just fine but I may have missed something :)
So in order to run my VT multi-tenant, does anybody knows if there is other
important files/directories to take care about ?
Regards,
--
View this message in context: http://vtiger-crm.2324883.n4.nabble.com/Multi-tenant-configuration-for-VT6-tp15672.html
Sent from the vtigercrm-developers mailing list archive at Nabble.com.
More information about the vtigercrm-developers
mailing list