PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : ORSR + apache2 + modperl



skatetrash13
14.04.05, 07:42
Habe gestern OTRS erfolgreich installiert, funktioniert soweit alles.
mysql war kein problem und apache2 config eigentlich auch nicht.

hier ein config teil aus der doku:

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

*)
With mod_perl (speed!):
=======================
Add this to the mod_perl stuff section in httpd.conf
[...]
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
Alias /otrs/ "/opt/otrs/bin/cgi-bin/"

<Location /otrs>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader On
PerlSetupEnv On
</Location>

Zurzeit habe ich diese Lösung am laufen:

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

ich hätte aber gerne diese am laufen:

*)
With mod_perl (speed!):
=======================
Add this to the mod_perl stuff section in httpd.conf
[...]
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
Alias /otrs/ "/opt/otrs/bin/cgi-bin/"

<Location /otrs>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader On
PerlSetupEnv On
</Location>


Das ganze läuft auf einen Debian sarge LAMP mit apache2.0.50, 4.0.24, php4. mod_perl ist auch installiert und aktiviert.
wenn ich die 2'e Lösung mit mod_perl versuche, bekomme ich einen Internal ServerError 500
(Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log)


weiss grad nicht wo ich den fehler zum suchen anfangen sollte :/

Tomek
14.04.05, 10:52
Erhöhe mal das Loglevel (LogLevel debug) in der Apache-Konfiguration und starte den Server neu. Versuche nun den Fehler zu reproduzieren. Danach sollte im Apache-Errorlog einiges darüber stehen, das du hier auch posten möchtest.

skatetrash13
19.04.05, 09:49
Erhöhe mal das Loglevel (LogLevel debug) in der Apache-Konfiguration und starte den Server neu. Versuche nun den Fehler zu reproduzieren. Danach sollte im Apache-Errorlog einiges darüber stehen, das du hier auch posten möchtest.

hier bitte sehr :)


[Tue Apr 19 10:17:28 2005] [error] [client 10.10.150.5] failed to resolve handle
r `Apache::Registry': Can't locate Apache/Registry.pm in @INC (@INC contains: /u
sr/lib/perl5/Apache2 /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5
.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/
local/lib/site_perl . /etc/apache2) at (eval 3) line 3.\n


wisst ihr bescheid????

lg
st13 :)

skatetrash13
21.04.05, 19:30
weiss zu dem oben beschrieben error wirklich keiner bescheid :(

lg
st13

Tomek
21.04.05, 23:36
Dir fehlt das Perl-Modul Apache/Registry.pm. Also nachinstallieren.

skatetrash13
25.04.05, 10:36
Dir fehlt das Perl-Modul Apache/Registry.pm. Also nachinstallieren.

das wurde mit apt-get installiert und auch geladen :/

hier scheint jemand das selbe problem zu haben
http://lists.otrs.org/pipermail/otrs-de/2005-April/003230.html

skatetrash13
25.04.05, 11:52
So ich habs gelöst und hinbekommen.
Für alle die diesen Fehler auch bekommen, hier die Lösung:

Wenn Ihr diesen Error im Apache ErrorLog habt...

[Tue Apr 19 10:17:28 2005] [error] [client 10.10.150.5] failed to resolve handle
r `Apache::Registry': Can't locate Apache/Registry.pm in @INC (@INC contains: /u
sr/lib/perl5/Apache2 /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5
.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/
local/lib/site_perl . /etc/apache2) at (eval 3) line 3.\n
...stimmt folgendes nicht:

ServerName evalsystem-otrs
DocumentRoot /usr/share/otrs/var/httpd/htdocs/
Alias /otrs-web/ "/usr/share/otrs/var/httpd/htdocs/"
Alias /otrs/ "/usr/share/otrs/bin/cgi-bin/"
<Location /otrs>
SetHandler perl-script
PerlHandler ModPerl::Registry falsch ist PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader On
PerlSetupEnv On
</Location>



Falls ihr diesen Fehler bekommt ....

[error] Can't locate Kernel/Config.pm in @INC (@INC contains: //../../Kernel/cpan-lib //../.. /usr/lib/perl5/Apache2 /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl . /etc/apache2) at /usr/share/otrs/bin/cgi-bin/index.pl line 50.\nBEGIN failed--compilation aborted at /usr/share/otrs/bin/cgi-bin/index.pl line 50.\n
.... stimmt folgendes in der /usr/share/otrs/bin/cgi-bin/index.pl nicht:


# use ../../ as lib location
use FindBin qw($Bin);
use lib "$Bin/../..";
use lib "$Bin/../../Kernel/cpan-lib";

IN DAS HIER ÄNDERN

# use ../../ as lib location
use FindBin qw($Bin);
use lib "$Bin/usr/share/otrs/";
use lib "$Bin/usr/share/otrs/Kernel/cpan-lib";





lg
st13