[Vtigercrm-developers] Multi-tenant configuration for VT6 ?

Ranieri rslemer at gmail.com
Mon Mar 23 15:54:14 GMT 2015


is very good ideia, but is only that for vt6 is multi tenancy ?

Ranieri

2015-03-23 8:36 GMT-03:00 apcloic <apcloic at gmail.com>:

> 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.
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150323/603a6c99/attachment.html>


More information about the vtigercrm-developers mailing list