(CLOSED) Multiple instances of OTRS on one server?

Moderator: crythias

Locked
morecw
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?

Post by morecw »

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?
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
CSL
Znuny expert
Posts: 159
Joined: 11 Nov 2011, 19:27
Znuny Version: 3.0.11

Re: Multiple instances of OTRS on one server?

Post by CSL »

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
crythias
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?

Post by crythias »

... 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
morecw
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?

Post by morecw »

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?
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
CSL
Znuny expert
Posts: 159
Joined: 11 Nov 2011, 19:27
Znuny Version: 3.0.11

Re: Multiple instances of OTRS on one server?

Post by CSL »

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
morecw
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?

Post by morecw »

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.
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.

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 ;)) in case it helps us figure this problem out
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
morecw
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?

Post by morecw »

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
morecw
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?

Post by morecw »

pllleeeease??
OTRS 3.1.6, Windows 2008 with MySQL database
Firefox 14, Chrome 22
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Multiple instances of OTRS on one server?

Post by jojo »

check you apache config.

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
morecw
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?

Post by morecw »

jojo wrote:check you apache config.

Note that it is not suggested to run more than one instance on one apache instance!
Right ok. So vmware it is then!
OTRS 3.1.6, Windows 2008 with MySQL database
Firefox 14, Chrome 22
morecw
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?

Post by morecw »

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?
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
crythias
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?

Post by crythias »

http://source.otrs.org/viewvc.cgi/otrs/ ... 24&view=co

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/"
  [...]

 *)
http://source.otrs.org/viewvc.cgi/otrs/ ... iew=markup

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>
"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 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
morecw
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?

Post by morecw »

"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.
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.
OTRS 3.1.6, Windows 2008 with MySQL database
Firefox 14, Chrome 22
crythias
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?

Post by crythias »

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,

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>
"but it's not the same at both places!!"
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>
"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.
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
morecw
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?

Post by morecw »

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
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
Locked