I've searched a lot about this problem and found only some very old topics - but no solution.
I'm trying to run OTRS 5.0.42 in a Docker container based on "httpd" (Apache 2.4 / Debian Buster). The main reason is that our Server has a too old perl version for updating to Znuny 6, so I hoped to make a transition to Znuny possible by dockerizing it.
The code of OTRS (copied from our production system) is inserted via ADD in Dockerfile to /opt/otrs and SetPermissions.pl is run. CheckModules showed that all Perl-modules are successfully installed. Running index.pl via shell (both as user otrs and "daemon" (webserver)) successfully returns the HTML of the login page.
But when I call it via webserver I'll get an error 500 in the apache-logs showing this message:
Code: Select all
[:error] [pid 12:tid 139884073256704] Cannot find current script '/opt/' at /usr/share/perl/5.28/FindBin.pm line 166.
BEGIN failed--compilation aborted at /usr/share/perl/5.28/FindBin.pm line 166.
Compilation failed in require at /opt/otrs/bin/cgi-bin/index.pl line 23.
BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/index.pl line 23.
Thanks in advance,
Titus