Hi Brian and Victor, On Wed, Jul 06, 2005 at 10:33:11AM +0200, Victor Rodriguez Cortes wrote: >> Debian: 3.1 (Sarge) >> OTRS: 1.3.2 >> Apache: 2.0.54-4 >> mod_perl2: 1.999.21-1 > > As I update my systems from time to time, this are the versions I have > currently >working in my setup: > >- Debian Sarge (unstable, hasn't been upgraded to final yet) >- Apache2 v2.0.53-5 >- mod_perl2 v1.999.21-1
I got 2.0 cvs running with mod_perl2-1.999.x on debian 3.1 stable and
mod_perl2-2.x on unstable. I never tryed it with OTRS 1.3.x or earlier
versions.
>> Should I maybe try the OTRS 2 beta? Or is there a known problem with
>> the mod_perl2?
The problem might be the CGI cpan module that is included in
every OTRS installation. Because the API of mod_perl2 changed, older
CGI cpan modules might be incompartible with mod_perl2. For that reason,
we removed this cpan module in our cvs head and newer OtRS installation
will require manual installation of the CGI cpan module. If there are
problems with OTRS and mod_perl2, I'd remove the CGI module from OTRS
directory and use the module of the linux distro.
I had to make the following things, to get OTRS running on debian 3.1
stable:
- Change the apache configuration:
-----
[...]
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
# load all otrs modules
Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl
# Apache::Reload - Reload Perl Modules when Changed on Disk
PerlModule Apache::Reload
PerlInitHandler Apache::Reload
# set mod_perl2 options
<Location /otrs>
# ErrorDocument 403 /otrs/customer.pl
AllowOverride None
ErrorDocument 403 /otrs/index.pl
SetHandler perl-script
PerlHandler ModPerl::Registry
PerlOptions +ParseHeaders
PerlSetupEnv On
Options +ExecCGI
Order allow,deny
Allow from all
</Location>
[...]
----
- Change the apache2-perl-startup.pl script of OtRS:
-----
...
$ENV{MOD_PERL} =~ /mod_perl/ or die "MOD_PERL not used!";
# --
# set otrs lib path!
# --
use lib "/opt/otrs/";
use lib "/opt/otrs/Kernel/cpan-lib";
# pull in things we will use in most requests so it is read and compiled
# exactly once
use CGI (); CGI->compile(':all');
use CGI (); CGI->compile(':cgi');
use CGI::Carp ();
use Apache2 ();
use Apache::DBI ();
Apache::DBI->connect_on_init('DBI:mysql:otrs', 'otrs', 'secret');
use DBI ();
...
-----
I've installed the following packages, no manual installation of
cpan-modules via the cpan shell of perl was necesary:
apache2-common - 2.0.54-4
apache2-utils - 2.0.54-4
apache2-mpm-prefork - 2.0.54-4
libapache2-mod-perl2 - 1.999.21-1
libapache-dbi-perl - 0.94-2
libdbi-perl - 1.46-6
...
And of course all perl modules that are used with OTRS..., see the
bin/otrs.checkModules script.
Also I hadn't to remove the CGI stuff from OTRS directory, the cpan
module (version 3.10) is working fine.
> To make OTRS works with mod_perl2, I think that you must use
>"use >Apache::compat;" in your "apache2-startup.pl" mod_perl2 startup
>script. At least that >seems to do the trick with all the versions of
>Apache2-mod_perl2 that I've used so far
That wasn't necesary on my installation.
It's a little tricky to get OTRS work with mod_perl2 on debian at the
moment, but it'll work. Just take a look in the apache error log and
check the messages of the startup script.
Best regards,
Christian
--
((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg
http://www.otrs.de/ :: Manage your communication!
signature.asc
Description: Digital signature
_______________________________________________ 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 Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/
