Hi everybody,

I am trying to run 2 OTRS instances with only 1 apache and 1 MySql. I am running on Windows XP.
I am going to use 1 OTRS for production and 1 OTRS for development, which I call OTRS Prod and OTRS Dev respectively.
The path for OTRS production is : C:/PROGRA~1/OTRS/OTRS/
The path for OTRS development is : C:/PROGRA~1/OTRS/otrsdev/

Here what I have done:
1. Create new directory containing the OTRS for development (C:/PROGRA~1/OTRS/otrsdev/)

2. Add include statement in Apache's httpd.conf:
# include the OTRS Prod configuration
Include 'C:/PROGRA~1/OTRS/OTRS/scripts/apache2-httpd-new.include.conf'

# include the OTRS dev configuration
Include 'C:/PROGRA~1/OTRS/otrsdev/scripts/apache2-httpd-new.include.conf'

# ---

2. Change all statement in file 'C:/PROGRA~1/OTRS/otrsdev/scripts/apache2-httpd-new.include.conf' from C:/PROGRA~1/OTRS/OTRS/ to C:/PROGRA~1/OTRS/otrsdev/

3. Change the "use lib" statement in C:/PROGRA~1/OTRS/otrsdev/scripts/apache2-perl-startup.pl
    use lib "C:/PROGRA~1/OTRS/otrsdev";
    use lib "C:/PROGRA~1/OTRS/otrsdev/Kernel/cpan-lib";

4. Create new config.pm. Change the database and home directody in config.pm.
$Self->{'Database'} = 'otrsdev';

$Self->{Home} = 'C:/PROGRA~1/OTRS/otrsdev';


Now, when I run the OTRS development , http://localhost/otrsdev/index.pl , it  used the otrs production database (otrs) instead of otrs development database (otrsdev) and use all of the library (Kernel) under C:/PROGRA~1/OTRS/OTRS/ instead of C:/PROGRA~1/OTRS/otrsdev. Hence, everytime I made a change in the OTRS develoment the OTRS production is also changing and vice versa.

I have made some experiment, when I changed the order of the include statement in httpd.conf:

# include the OTRS dev configuration
Include 'C:/PROGRA~1/OTRS/otrsdev/scripts/apache2-httpd-new.include.conf'


# include the OTRS production configuration
Include 'C:/PROGRA~1/OTRS/OTRS/scripts/apache2-httpd-new.include.conf'


# ---

The result is that the OTRS production and OTRS development will use the otrs development database (otrsdev) and use all of the library (Kernel) from C:/PROGRA~1/OTRS/otrsdev.

I am really confused here. Can anyone help me??

Thanx a lot before.