Hi,
Update :
Seems to work now, resuming tests..:-)
Her is what I changed last, maybe some redundant changes, will eliminate
later.
In httpd-vhost.conf ( virtual host part, remember I use apache 2.2.? )
Listen requests.be.eds.com:80
<VirtualHost requests.xx.yy.com:80>
ServerAdmin [EMAIL PROTECTED]
# DocumentRoot /usr/requests
DocumentRoot /usr/otrs
ServerName requests.xx.xx.com
ErrorDocument 404 /missing.html
ErrorDocument 403 /Denied.html
ErrorDocument 500 /500ServerError.html
ErrorLog "|/usr/web/bin/rotatelogs
/usr/web/logs/requests-error_log.%Y-%m-%d-%H_%M_%S 5M"
CustomLog "|/usr/web/bin/rotatelogs
/usr/web/logs/requests-access_log 1M" common
LogLevel warn
#
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\" %I %O" combinedio
</IfModule>
# CustomLog logs/access_log common
</IfModule>
#
Alias /otrs-web/ "/usr/usr200/otrs/var/httpd/htdocs/"
ScriptAlias /otrs/ "/usr/usr200/otrs/bin/cgi-bin/"
Alias /otrs "/usr/usr200/otrs/bin/cgi-bin/"
PerlSwitches -I/usr/usr200/otrs/
PerlSwitches -I/usr/usr200/otrs/Kernel
PerlSwitches -I/usr/usr200/otrs/Kernel/cpan-lib
PerlSwitches -I/usr/usr200/otrs/Kernel/Modules
<Location /otrs >
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options ExecCGI
Order allow,deny
Allow from all
</Location>
<location /otrs-web >
SetHandler perl-script
Options ExecCGI
Order allow,deny
Allow from all
</Location>
<Directory "/usr/otrs">
# Options Indexes FollowSymLinks +ExecCGI
# Options +ExecCGI -Includes
# AllowOverride Limit
AllowOverride None
DirectoryIndex index.html /GoodBye.html
Order allow,deny
Allow from all
</Directory>
<Directory "/usr/otrs/bin/cgi-bin/">
AllowOverride None
Options +ExecCGI -Includes
AddHandler cgi-script .cgi
# DirectoryIndex index.pl
SetEnv LD_LIBRARY_PATH "/usr/lib:/usr/local/lib:/lib"
</Directory>
</VirtualHost>
Then
In /usr/otrs/bin/cgi-bin
Index.pl
Coment out the shbang. ( #!usr/local/bin/perl )
and
##use FindBin qw($Bin);
##use lib "$Bin/../..";
##use lib "$Bin/../../Kernel/cpan-lib";
BEGIN{
unshift( @INC, "/usr/usr200/otrs" );
unshift( @INC, "/usr/usr200/otrs/Kernel" );
unshift( @INC, "/usr/usr200/otrs/Kernel/cpan-lib" );
}
use strict;
use vars qw($VERSION @INC);
$VERSION = '$Revision: 1.80 $';
$VERSION =~ s/^\$.*:\W(.*)\W.+?$/$1/;
# check @INC for mod_perl (add lib path for "require module"!)
#push (@INC, "$Bin/../..", "$Bin/../../Kernel/cpan-lib");
push (@INC, "/usr/usr200/otrs/bin/cgi-bin/../..",
"/usr/usr200/otrs/bin/cgi-bin/../../Kernel/cpan-lib");
Same for facq.pl and customer.pl
I am resuming testing now!
Kind regards
Andre
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Christian Schoepplein
Sent: maandag 21 augustus 2006 18:28
To: User questions and discussions about OTRS.org
Subject: Re: [otrs] Trying MOD_PERL with otrs 2.0.4
Hi,
On Fri, Aug 18, 2006 at 01:48:00PM +0200, Her, Andre wrote:
>I have problems starting otrs 2.0.4 with mod_perl My environemt is:
>Solaris 8
>Apache 2.2.?
>Mysql 5.0.20 ( not relevant here, but to be complete) Mod_perl 2.0.2
>Perl 5.8.8 ( configured to look into ../perl5.8.0 )
>
>Important here, I think, is that
>1) the apache server run with 2 virtual host, only one is used by OTRS,
>the other form another application under php5.0??
>
>2) the document root is /usr/otrs and NOT under /usr/local/apache (
>apache is installed under /usr/apache2.2.3/ )
>
>It use to work while running CGI, but the server ( an old Ultra1 ) was
>that slow that I decided to have a try with mod_perl.
>
>The error are all related to :
>6] [error] Can't locate Kernel/System/Web/InterfaceAgent.pm in @INC
>(@INC
>contains: /export/home/apache2.2.0/bin/../..
>/export/home/apache2.2.0/bin/.. /
>usr/local/lib/perl5/5.8.0/sun4-solaris /usr/local/lib/perl5/5.8.0
>/usr/local/ lib/perl5/site_perl/5.8.0/sun4-solaris
>/usr/local/lib/perl5/site_perl/5.8.0 . /
>export/home/apache2.2.0) at /usr/otrs/bin/cgi-bin/index.pl line
>42.\nBEGIN failed--compilation aborted at
>/usr/otrs/bin/cgi-bin/index.pl line 42.\n
>
>So mod_perl is looking for perl modules in /export/home/apache2.2.0/bin
>as a result of the FindBin($Bin) in the index.pl.
>
>I wonder how to correct this without to much re-write !?
Look for the file
scripts/apache2-perl-startup.pl
in your otrs home directory. Within the first lines of this file you can
set the paths for the OTRS libs:
----------
[...]
# --
# set otrs lib path!
# --
use lib "/opt/otrs/";
use lib "/opt/otrs/Kernel/cpan-lib";
[...]
----------
Change the paths to your needs, then it should work.
>Andre
Regards,
Christian
--
((otrs)) :: OTRS GmbH :: Europaring 4 :: D - 94315 Straubing
Fon: +49 (0) 9421 1862 760 :: Fax: +49 (0) 9421 1862 769
http://www.otrs.com/ :: Communication with success!
_______________________________________________
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 orr consulting for your OTRS system?
=> http://www.otrs.com/