(CLOSED) Multiple instances of OTRS on one server?
Moderator: crythias
-
- Znuny expert
- Posts: 215
- Joined: 18 Jun 2012, 09:24
- Znuny Version: 3.1.6
- Real Name: Craig Wellman
- Company: STÜBER SYSTEMS
(CLOSED) Multiple instances of OTRS on one server?
Has anyone tried or got this working before? I'd like to run a completely separate instance of OTRS on the same server for a different business.
At the moment I'm running 3.1.6 quite happily on a Windows 2008 server.
Is this possible to do?
At the moment I'm running 3.1.6 quite happily on a Windows 2008 server.
Is this possible to do?
Last edited by morecw on 29 Aug 2012, 23:09, edited 1 time in total.
OTRS 3.1.6, Windows 2008 with MySQL database
Firefox 14, Chrome 22
Firefox 14, Chrome 22
Re: Multiple instances of OTRS on one server?
It's possible, but it's not going to be pleasant to configure and troubleshoot, especially on windows with the installer. You will need separate databases, another virtual host configured on your webserver, another application directory, and all of the configuration options set to use them. It's probably not worth the hassle unless you really don't have any other hardware you could run the other instance on.
Backend: OTRS 3.0.11 RedHat Enterprise Linux 6.2, Apache, MySQL with replication
Frontend: OTRS 3.0.11 RedHat Enterprise Linux 6.2 with SELinux, Apache SSL
Frontend: OTRS 3.0.11 RedHat Enterprise Linux 6.2 with SELinux, Apache SSL
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Multiple instances of OTRS on one server?
... or virtual machines...
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny expert
- Posts: 215
- Joined: 18 Jun 2012, 09:24
- Znuny Version: 3.1.6
- Real Name: Craig Wellman
- Company: STÜBER SYSTEMS
Re: Multiple instances of OTRS on one server?
I think it could work. This is what I've done so far.
Copy C:\Program Files\OTRS\OTRS to C:\Program Files\OTRS\Apache\htdocs\ rename directory to ’OTRS2’
Update the following files with the new path:
• scripts/apache2-httpd-new.include.conf
• scripts/apache2-perl-startup.pl
• Kernel/Config.pm
Add the DNS Entry e.g otrs2.oursite.intranet
Create new database "OTRS2" and database user "OTRS2"
• update Kernel/Config.pm with this info
So far the site is connecting in some way, but I'm only presented with the index.pl page. Any ideas why??
Any ideas?
Copy C:\Program Files\OTRS\OTRS to C:\Program Files\OTRS\Apache\htdocs\ rename directory to ’OTRS2’
Update the following files with the new path:
• scripts/apache2-httpd-new.include.conf
• scripts/apache2-perl-startup.pl
• Kernel/Config.pm
Add the DNS Entry e.g otrs2.oursite.intranet
Create new database "OTRS2" and database user "OTRS2"
• update Kernel/Config.pm with this info
So far the site is connecting in some way, but I'm only presented with the index.pl page. Any ideas why??
Any ideas?
Last edited by morecw on 21 Aug 2012, 00:27, edited 2 times in total.
OTRS 3.1.6, Windows 2008 with MySQL database
Firefox 14, Chrome 22
Firefox 14, Chrome 22
Re: Multiple instances of OTRS on one server?
How have you set up the webserver? You will need another virtual host specified on a different port than 80 to have both instances running at the same time. You will need to either modify the existing otrs apache config file (inside the apache directory) to include it, or add another file by coying / pasting the contents and editing them for your second instance.
Backend: OTRS 3.0.11 RedHat Enterprise Linux 6.2, Apache, MySQL with replication
Frontend: OTRS 3.0.11 RedHat Enterprise Linux 6.2 with SELinux, Apache SSL
Frontend: OTRS 3.0.11 RedHat Enterprise Linux 6.2 with SELinux, Apache SSL
-
- Znuny expert
- Posts: 215
- Joined: 18 Jun 2012, 09:24
- Znuny Version: 3.1.6
- Real Name: Craig Wellman
- Company: STÜBER SYSTEMS
Re: Multiple instances of OTRS on one server?
In the Apache file I've defined some additional sites as virtualhosts. Some are listening on an internet address the others on an internal address but all are on port 80 and they all work.CSL wrote:How have you set up the webserver? You will need another virtual host specified on a different port than 80 to have both instances running at the same time. You will need to either modify the existing otrs apache config file (inside the apache directory) to include it, or add another file by coying / pasting the contents and editing them for your second instance.
Can a second instance of OTRS not be treated like any other Virtualhost?
I've attached a copy of my Apache httpd.conf file (edited of course

Last edited by morecw on 21 Aug 2012, 00:26, edited 2 times in total.
OTRS 3.1.6, Windows 2008 with MySQL database
Firefox 14, Chrome 22
Firefox 14, Chrome 22
-
- Znuny expert
- Posts: 215
- Joined: 18 Jun 2012, 09:24
- Znuny Version: 3.1.6
- Real Name: Craig Wellman
- Company: STÜBER SYSTEMS
Re: Multiple instances of OTRS on one server?
Does anyone have any thoughts on this? It would be really great if we can work this out and help others with the same problem 

OTRS 3.1.6, Windows 2008 with MySQL database
Firefox 14, Chrome 22
Firefox 14, Chrome 22
-
- Znuny expert
- Posts: 215
- Joined: 18 Jun 2012, 09:24
- Znuny Version: 3.1.6
- Real Name: Craig Wellman
- Company: STÜBER SYSTEMS
Re: Multiple instances of OTRS on one server?
pllleeeease??
OTRS 3.1.6, Windows 2008 with MySQL database
Firefox 14, Chrome 22
Firefox 14, Chrome 22
Re: Multiple instances of OTRS on one server?
check you apache config.
Note that it is not suggested to run more than one instance on one apache instance!
Note that it is not suggested to run more than one instance on one apache instance!
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny expert
- Posts: 215
- Joined: 18 Jun 2012, 09:24
- Znuny Version: 3.1.6
- Real Name: Craig Wellman
- Company: STÜBER SYSTEMS
Re: Multiple instances of OTRS on one server?
Right ok. So vmware it is then!jojo wrote:check you apache config.
Note that it is not suggested to run more than one instance on one apache instance!
OTRS 3.1.6, Windows 2008 with MySQL database
Firefox 14, Chrome 22
Firefox 14, Chrome 22
-
- Znuny expert
- Posts: 215
- Joined: 18 Jun 2012, 09:24
- Znuny Version: 3.1.6
- Real Name: Craig Wellman
- Company: STÜBER SYSTEMS
Re: Multiple instances of OTRS on one server?
I've edited the httpd.conf again but the problem now is that it either does following:
a) by entering "otrs2.oursite.intranet" it still only loads index.pl as a text file in the browser, although it is definitely taking it from the right place (htdocs/otrs2/bin/cgi-bin/index.pl)
b) by entering "otrs2.oursite.intranet/otrs/index.pl" it opens the original installation of OTRS (otrs/otrs/bin/cgi-bin/index.pl)
Could someone please take a look at my Apache file (attached) and tell me if I'm doing something wrong?
a) by entering "otrs2.oursite.intranet" it still only loads index.pl as a text file in the browser, although it is definitely taking it from the right place (htdocs/otrs2/bin/cgi-bin/index.pl)
b) by entering "otrs2.oursite.intranet/otrs/index.pl" it opens the original installation of OTRS (otrs/otrs/bin/cgi-bin/index.pl)
Could someone please take a look at my Apache file (attached) and tell me if I'm doing something wrong?
You do not have the required permissions to view the files attached to this post.
OTRS 3.1.6, Windows 2008 with MySQL database
Firefox 14, Chrome 22
Firefox 14, Chrome 22
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Multiple instances of OTRS on one server?
http://source.otrs.org/viewvc.cgi/otrs/ ... 24&view=co
http://source.otrs.org/viewvc.cgi/otrs/ ... iew=markup
"So, what do I do with this?"
Make sure that there's a good alias and scriptalias for each virtualhost, and permissions are set well.
Code: Select all
*)
Without mod_perl (just CGI):
============================
Add this to the cgi-bin stuff section in httpd.conf
[...]
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
[...]
*)
Code: Select all
# directory settings
<Directory "/opt/otrs/bin/cgi-bin/">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
<Directory "/opt/otrs/var/httpd/htdocs/">
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Make sure that there's a good alias and scriptalias for each virtualhost, and permissions are set well.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny expert
- Posts: 215
- Joined: 18 Jun 2012, 09:24
- Znuny Version: 3.1.6
- Real Name: Craig Wellman
- Company: STÜBER SYSTEMS
Re: Multiple instances of OTRS on one server?
I'm still lost. Could you please take a glance at the httpd file (above) and tell me how/where to use this new code? I'd really appreciate it."So, what do I do with this?"
Make sure that there's a good alias and scriptalias for each virtualhost, and permissions are set well.
OTRS 3.1.6, Windows 2008 with MySQL database
Firefox 14, Chrome 22
Firefox 14, Chrome 22
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Multiple instances of OTRS on one server?
For each virtualhost directive that points to an installation of otrs, you need to add the code and make sure they point to the proper locations.
"I still don't understand!"
Look,
"but it's not the same at both places!!"
Then change the paths to match!
"But my code isn't at /opt/otrs2? Do I need /opt/otrs2?"
You know where your code is. just make sure the paths match for the iterations you're using.
No, don't actually use this code verbatim. Make it work with what you know. If you don't understand virtualhosts, directives, paths, directories, get some paid support to help you. The first answer was the right one: Create virtual machines for each iteration. It'll be that much easier to divest yourself of it or not break all of them if your master install goes bad.
"I still don't understand!"
Look,
Code: Select all
<VirtualHost version1:port>
#This goes to version one of otrs ...
# other code I already have ...
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
# directory settings
<Directory "/opt/otrs/bin/cgi-bin/">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
<Directory "/opt/otrs/var/httpd/htdocs/">
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Then change the paths to match!
Code: Select all
<VirtualHost namedhostothername:port>
#This goes to version two of otrs ...
# other code I already have is still here.
#now I'll add this code ...
Alias /otrs-web/ "/opt/otrs2/var/httpd/htdocs/"
ScriptAlias /otrs/ "/opt/otrs2/bin/cgi-bin/"
# directory settings
<Directory "/opt/otrs2/bin/cgi-bin/">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
<Directory "/opt/otrs2/var/httpd/htdocs/">
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
You know where your code is. just make sure the paths match for the iterations you're using.
No, don't actually use this code verbatim. Make it work with what you know. If you don't understand virtualhosts, directives, paths, directories, get some paid support to help you. The first answer was the right one: Create virtual machines for each iteration. It'll be that much easier to divest yourself of it or not break all of them if your master install goes bad.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny expert
- Posts: 215
- Joined: 18 Jun 2012, 09:24
- Znuny Version: 3.1.6
- Real Name: Craig Wellman
- Company: STÜBER SYSTEMS
(CLOSED) Multiple instances of OTRS on one server?
This never worked in the end and we have decided to fit our requirements into one system now. Thanks for the suggestions.
I'll attach my latest httpd.conf in case anyone wants to see how far I got with it
I'll attach my latest httpd.conf in case anyone wants to see how far I got with it
You do not have the required permissions to view the files attached to this post.
OTRS 3.1.6, Windows 2008 with MySQL database
Firefox 14, Chrome 22
Firefox 14, Chrome 22