<div dir="ltr">What happens if a user uploads a custom (possibly spam-filled) module to one of the instances?</div><div class="gmail_extra"><br><div class="gmail_quote">On 24 March 2015 at 20:31, Richard Hills - Technologywise <span dir="ltr"><<a href="mailto:richard@tw.co.nz" target="_blank">richard@tw.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Storage folder will need to be configurable also.<br>
<br>
Good to hear someone is looking into this.<div class="HOEnZb"><div class="h5"><br>
<br>
On 24/03/15 00:36, apcloic wrote:<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.<u></u>mydomain1.php");<br>
     break;<br>
<br>
     case "<a href="http://mydomain2.com" target="_blank">mydomain2.com</a>":<br>
     include_once("config.inc.<u></u>mydomain2.php");<br>
     break;<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_<u></u>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>
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.<u></u>nabble.com/Multi-tenant-<u></u>configuration-for-VT6-tp15672.<u></u>html</a><br>
Sent from the vtigercrm-developers mailing list archive at Nabble.com.<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote>
<br></div></div><span class="HOEnZb"><font color="#888888">
-- <br>
Richard Hills<br>
TechnologyWise Ltd, Tauranga, NZ<br>
<a href="mailto:richard@tw.co.nz" target="_blank">richard@tw.co.nz</a><br>
<a href="http://www.technologywise.co.nz" target="_blank">www.technologywise.co.nz</a><br>
ph: <a href="tel:%2B64%20%280%297%20571%201060" value="+6475711060" target="_blank">+64 (0)7 571 1060</a><br>
fax: <a href="tel:%2B64%20%280%297%20571%201061" value="+6475711061" target="_blank">+64 (0)7 571 1061</a><br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</font></span></blockquote></div><br></div>