- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
multiple versions same server
- BluePukeko
- Topic Author
- Offline
- New Member
Less
More
3 weeks 5 days ago #259467
by BluePukeko
multiple versions same server was created by BluePukeko
Please help us help you and fill where relevant:
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey hosting:
Survey theme/template:
==================
Hi, I'm looking at installing Lime on my server, but would like to have two or more installations, using different domain names, on the same server.
Can I install the application with a common shared set of scripts and then have each domain root with a set of config files, or will I need to install each domain root with the complete set of scripts.
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey hosting:
Survey theme/template:
==================
Hi, I'm looking at installing Lime on my server, but would like to have two or more installations, using different domain names, on the same server.
Can I install the application with a common shared set of scripts and then have each domain root with a set of config files, or will I need to install each domain root with the complete set of scripts.
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11663
- Thank you received: 2742
3 weeks 5 days ago #259469
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic multiple versions same server
Limesurvey is NOT multitenant. So you will have to make full installs for each.
Also, watch out when it comes to shared folders (e.g. temporary folders, session path, etc.).
I would try to separate the installations as much as possible so that there is no interference. I usually install them as separate accounts in admin panels like Cpanel or Plesk, so even if they are on the same server / webspace, they are very seperate projects (with different subdomains or domains).
What you can do is using several domains with the same installation, but you won't have different configurations, but it would be the same installation and exactly everything the same, you just can access it with different domains. I don't think that is what you are looking for.
Also, watch out when it comes to shared folders (e.g. temporary folders, session path, etc.).
I would try to separate the installations as much as possible so that there is no interference. I usually install them as separate accounts in admin panels like Cpanel or Plesk, so even if they are on the same server / webspace, they are very seperate projects (with different subdomains or domains).
What you can do is using several domains with the same installation, but you won't have different configurations, but it would be the same installation and exactly everything the same, you just can access it with different domains. I don't think that is what you are looking for.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Please Log in to join the conversation.
- BluePukeko
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
3 weeks 5 days ago #259479
by BluePukeko
Replied by BluePukeko on topic multiple versions same server
Thanks for the quick answer.
What I was hoping to achieve was different types of surveys, ie one domain for questionnaires, another for product surveys and another for simple Yes/No polls.
Now I know the requirements I can create three separate sites, which will probably be easier than having a common code area using symlinks back to the actual code.
Basically, I was trying to save disk space.
What I was hoping to achieve was different types of surveys, ie one domain for questionnaires, another for product surveys and another for simple Yes/No polls.
Now I know the requirements I can create three separate sites, which will probably be easier than having a common code area using symlinks back to the actual code.
Basically, I was trying to save disk space.
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11663
- Thank you received: 2742
3 weeks 5 days ago #259480
by holch
If it is about disk space, I don't think it is worth it anyway. Limesurvey itself isn't occupying that much disk space for modern HDDs or SSDs anyway. And the surveys/projects themselves will occupy the same amount anyway, no matter if it is 1 or 10 installations.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic multiple versions same server
Basically, I was trying to save disk space.
If it is about disk space, I don't think it is worth it anyway. Limesurvey itself isn't occupying that much disk space for modern HDDs or SSDs anyway. And the surveys/projects themselves will occupy the same amount anyway, no matter if it is 1 or 10 installations.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Please Log in to join the conversation.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13655
- Thank you received: 2492
3 weeks 5 days ago #259521
by DenisChenu
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.
Replied by DenisChenu on topic multiple versions same server
You can create your own config file with something like this:
You must set up LimeSurvey before
It work only for web (no console command) for console : use #ENV too for example.
Code:
$currentHost = $_SERVER['SERVER_NAME']; if(substr($currentHost, 0, 4 ) === "www.") { $currentHost = substr($currentHost, 4); } if(@is_file("/var/www/shared/config/limesurvey-config.php")) { $aSettings = require("{$serverRoot}/config/limesurvey-config.php"); return $aSettings; } /* defaullt setting */
It work only for web (no console command) for console : use #ENV too for example.
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.