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

Richard Hills - Technologywise richard at tw.co.nz
Tue Mar 24 19:31:51 GMT 2015


Storage folder will need to be configurable also.

Good to hear someone is looking into this.

On 24/03/15 00:36, apcloic wrote:
> 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/

-- 
Richard Hills
TechnologyWise Ltd, Tauranga, NZ
richard at tw.co.nz
www.technologywise.co.nz
ph: +64 (0)7 571 1060
fax: +64 (0)7 571 1061



More information about the vtigercrm-developers mailing list