Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

2 instances & 2 databases on one server

  • imnetxiin
  • imnetxiin's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 1 month ago - 1 year 1 month ago #241130 by imnetxiin
2 instances & 2 databases on one server was created by imnetxiin
Hello!

It is not very clear to me if it is safe to install two parallel instances (and two databases) on the same shared server in different directories (ls1.name.com & ls2.name.com or name.com/ls1 & name.com/ls2).

The LimeSurvey Manual / General FAQs says that you need to update the session configuration:  Two LimeSurvey instances on same domain  without really explaining the reasons for that or consequences of not doing so.

Is the information in the Manual still relevant? Maybe someone should update the Manual page to clarify this subject.

These don't help:
Last edit: 1 year 1 month ago by imnetxiin.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 1 month ago - 1 year 1 month ago #241131 by holch
Replied by holch on topic 2 instances & 2 databases on one server
I am running two instances (LS3 and LS5) on the same VPS, different databases, different subdomains.

I did not make any changes to the session configuration, but I think I have set up two different sites in plesk and I think this is like having two different, indepenent accounts.

The sessions can be a problem, because the different session files could cause problems if there is the same session file for both instances. I think chances are pretty low, but if you have session 5456 from instance one and 5456 from instance 2, you will run into trouble of course.

Let's see if someone else, like for example @jelo has something more to say.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Last edit: 1 year 1 month ago by holch.

Please Log in to join the conversation.

More
1 year 1 month ago #241133 by jelo
Replied by jelo on topic 2 instances & 2 databases on one server

I did not make any changes to the session configuration, but I think I have set up two different sites in plesk and I think this is like having two different, indepenent accounts.
 
Correct, subdomains had never problems cause each subdomain has a session cookie in the browser.

@imnetxiin
But you can install two or more instances in different folders under the same domain. The installer has improved and now creates a random session name (like all good php webtools). But it took years to get that issue recognized and then solved. Mostly the discussion ended like this:
forums.limesurvey.org/forum/development/...-default-sessionname

And it was this codeline, which fixed it.
github.com/LimeSurvey/LimeSurvey/blob/59...rController.php#L933


If you have old installations the config.php might use the default session name.
The most common issue when having two or more LimeSurvey instances on the same domain with the same session name is that you cannot be logged in more that one instance at the same time.

But when you install LimeSurvey these days, you no longer have to care about session names.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: holch

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 1 month ago #241309 by DenisChenu
Replied by DenisChenu on topic 2 instances & 2 databases on one server
I think i have more than 20 instance on same server …

About session : it's just best to use different session name if you have account on same server.

BUT : if it's different domain name : no real issue separation between example.org and exemple.com session cookie, and separation between server1.example.org and server2.exemple.org too.

The only potential issue : have exemple.org/instance1 and exemple.org/instance2 : by default cookie name is the same for CRSF and session. Buit you can force cookie path to server1 and to server2 (or use different cookie name.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose