
Greetings, I apologize if this has been asked before, but my OTRS isn't working on my system because FindBin is returning a faulty path in the $Bin variable. I understand that FindBin is broken with mod_perl, so how is this supposed to work? And no, I'm not using scripts/apache2-perl-startup.pl. The documentation reads that I "may" want to use a mod_perl startup script, but I actually don't... causing Apache to delay it's startup to load perl modules isn't something I'm too keen on, given this webserver is servicing other sites. I'm going to venture to guess that folks out there who have OTRS working are using the apache?-perl-startup.pl, which forces these variables: # -- # set otrs lib path! # -- use lib "/opt/otrs/"; use lib "/opt/otrs/Kernel/cpan-lib"; Versus running without the startup and relying on FindBin in the .pl, which is confirmed broken: use FindBin qw($Bin); use lib "$Bin/../.."; use lib "$Bin/../../Kernel/cpan-lib"; Does anyone see this as a bug, or is it just me? Is there another workaround? Thanks in advance for your insight and opinion, even if the response is simply, "just use the startup script, jerk" http://perl.apache.org/docs/1.0/guide/snippets.html#More_on_Relative_Paths http://siesta.unixbeard.net/siesta/archive/hates-software/2005/09/08/1e1300b...

Here is what I did, and so far seems to be OK.
Hi,
I am running :
Apache 2.2.x
Mysql 5.0.20
Perl 5.8.8
Mod_perl 2.0.2
!!
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.xx.yy.com:80
<VirtualHost requests.xx.yy.com:80>
ServerAdmin ahr@ti.yyy.emea.xx.com
# 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
participants (2)
-
Ben Lentz
-
Her, Andre