<div dir="ltr">is very good ideia, but is only that for vt6 is multi tenancy ?<div><br></div><div>Ranieri</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-23 8:36 GMT-03:00 apcloic <span dir="ltr"><<a href="mailto:apcloic@gmail.com" target="_blank">apcloic@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
I'm trying to build a multi-tenant installation (1 VT6 --> multiple DB).<br>
<br>
Depending on the host / url served, it's easy to select config file by<br>
replacing the original config.inc.php with something like this :<br>
<br>
<code><br>
<?php<br>
switch ($_SERVER [ 'SERVER_NAME' ])<br>
{<br>
case "<a href="http://mydomain1.com" target="_blank">mydomain1.com</a>":<br>
include_once("config.inc.mydomain1.php");<br>
break;<br>
<br>
case "<a href="http://mydomain2.com" target="_blank">mydomain2.com</a>":<br>
include_once("config.inc.mydomain2.php");<br>
break;<br>
<br>
default:<br>
die ("server not used to run vTigerCRM");<br>
}<br>
?><br>
<br>
In each domain specific config.inc file, there is options to set db,<br>
cache_dir, tmp_dir, etc. which is fine.<br>
<br>
However, there is no option to define paths for :<br>
parent_tabdata.php<br>
tabdata.php<br>
user_privileges folder<br>
logs folder<br>
logo folder<br>
...<br>
<br>
So to give a try using a test environment, I've added 4 variables to<br>
config.inc.mydomain1.php :<br>
parent_tabdata_path = /path/to/parent_tabdata_file<br>
tabdata_path = /path/to/parent_tabdata_file<br>
user_privileges_path = /path/to/user_privileges_folder<br>
logo = /path/to/logo_folder<br>
logs = /path/to/logs_folder<br>
<br>
Then, I've modified all hardcoded path references to these files & folders<br>
and to include my variables.<br>
<br>
Everything seems to run just fine but I may have missed something :)<br>
So in order to run my VT multi-tenant, does anybody knows if there is other<br>
important files/directories to take care about ?<br>
<br>
Regards,<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtiger-crm.2324883.n4.nabble.com/Multi-tenant-configuration-for-VT6-tp15672.html" target="_blank">http://vtiger-crm.2324883.n4.nabble.com/Multi-tenant-configuration-for-VT6-tp15672.html</a><br>
Sent from the vtigercrm-developers mailing list archive at Nabble.com.<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>