Yeah, the problem is mod_perl -> you'll only have one 'scope'  in
which the perl modules are loaded. This means you'll have one
"Kernel::Config" object and thus one database connection.

Of course you could use CGI but this would be slow, and you could use
FastCGI but this is cumbersome, at least in my opinion.

The solution is to set up multiple virtualhosts on the server, for
instance 'otrsprod.example.com'  and 'otrstest.example.com' and use
PerlOptions +Parent in the virtualhost configuration. See this blog
post for an explanation:
http://blog.otrs.org/2010/08/11/how-to-run-multiple-mod_perl-supported-otrs-on-a-single-host/

--
Mike

On Tue, Jul 8, 2014 at 3:40 PM,  <jan.dre...@bertelsmann.de> wrote:
> Hi.
>
> Am 07.07.2014 um 17:15 schrieb Karlos Jelez <otrs...@gmail.com>:
>
> My 2 OTRS instances are separated, working on their own directory (/otrs1
> and /otrs2) with separated Config.pm, Kernel.pm and Defaults.pm files,
> separated scripts into httpd.conf Apache config and separated cronjobs.
>
> I did try with 1 and with 2 MySql users to each OTRS instance, with 1 and
> with 2 operating system users, but it did not solve the problem.
>
> I think the problem is in how I am using apache2-perl-startup.pl script:
> Each script was modified to point to a different directory; I dont know
>
> Problem is that you are using mod_perl for both instances. Together with DBD
> (afair) this leads to only one DB connection for both. Try to either disable
> mod_perl for one instance (you may use fastcgi instead) or find a
> configuration that allows for two separate perl environments with mod_perl.
>
> Regards
> —
> Jan Dreyer
>
> ---------------------------------------------------------------------
> OTRS mailing list: otrs - Webpage: http://otrs.org/
> Archive: http://lists.otrs.org/pipermail/otrs
> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Reply via email to