Any advice would be appreciated, thank you.

Context:
OTRS 3.3.6 installation from source: 
https://otrs.github.io/doc/manual/admin/3.3/en/html/manual-installation-of-otrs.html
Installing on an AWS server: Amazon Linux AMI (PV) 2014.03.1 - ami-fb8e9292 
(64-bit)

Problem: "Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl" is failing 
when executing in /etc/httpd/conf.d/otrs.conf

Please note the line numbers referenced for some of the files may be off due to 
some debugging code I had added.

From: /var/log/httpd/error_log
[Thu Apr 24 13:50:45.854980 2014] [perl:error] [pid 2602] Cannot find current 
script '/opt/' at /usr/share/perl5/FindBin.pm line 181.
BEGIN failed--compilation aborted at /usr/share/perl5/FindBin.pm line 181.
Compilation failed in require at /opt/otrs//Kernel/Config/Defaults.pm line 29.
BEGIN failed--compilation aborted at /opt/otrs//Kernel/Config/Defaults.pm line 
29.
Compilation failed in require at (eval 7) line 2.
    ...propagated at /usr/share/perl5/base.pm line 84.
BEGIN failed--compilation aborted at /opt/otrs//Kernel/Config.pm line 99.
Compilation failed in require at /opt/otrs/scripts/apache2-perl-startup.pl line 
69.
BEGIN failed--compilation aborted at /opt/otrs/scripts/apache2-perl-startup.pl 
line 69.
Compilation failed in require at (eval 2) line 1.
[Thu Apr 24 13:50:45.855024 2014] [perl:error] [pid 2602] Can't load Perl file: 
/opt/otrs/scripts/apache2-perl-startup.pl for server 
ip-XX-XXX-XX-XXX.ec2.internal:0, exiting...

From: stacktrace code inserted into /usr/share/perl5/FindBin.pm
Trace begun at /usr/share/perl5/FindBin.pm line 113
FindBin::init at /usr/share/perl5/FindBin.pm line 181
FindBin::BEGIN at /usr/share/perl5/FindBin.pm line 181
eval {...} at /usr/share/perl5/FindBin.pm line 181
require FindBin.pm at /opt/otrs/Kernel/Config/Defaults.pm line 29
Kernel::Config::Defaults::BEGIN at /usr/share/perl5/FindBin.pm line 181
eval {...} at /usr/share/perl5/FindBin.pm line 181
require Kernel/Config/Defaults.pm at (eval 7) line 2
eval 'require Kernel::Config::Defaults
;' at /usr/share/perl5/base.pm line 81
base::import('base', 'Kernel::Config::Defaults') called at 
/opt/otrs/Kernel/Config.pm line 99
Kernel::Config::BEGIN at /usr/share/perl5/FindBin.pm line 181
eval {...} at /usr/share/perl5/FindBin.pm line 181
require Kernel/Config.pm at /opt/otrs/scripts/apache2-perl-startup.pl line 69
main::BEGIN at /usr/share/perl5/FindBin.pm line 181
eval {...} at /usr/share/perl5/FindBin.pm line 181
require /opt/otrs/scripts/apache2-perl-startup.pl at (eval 2) line 1
eval 'require q^@/opt/otrs/scripts/apache2-perl-startup.pl^@
;' at /usr/share/perl5/FindBin.pm line 181

From: some debugging code inserted into /usr/share/perl5/FindBin.pm
START INIT /usr/share/perl5/FindBin.pm
Thu Apr 24 13:53:41 UTC 2014
me - FindBin::init
parent - FindBin::BEGIN
script - /opt/

I can start up httpd and actually run OTRS if I disable mod_perl usage by 
altering the "<IfModule perl_module>" line in /etc/httpd/conf.d/otrs.conf to 
look for a module that does not exist.  Version logged when starting: [Thu Apr 
24 13:45:41.531835 2014] [mpm_prefork:notice] [pid 2530] AH00163: Apache/2.4.9 
(Amazon) mod_perl/2.0.7 Perl/v5.16.3 configured -- resuming normal operations

That was actually my initial install and I did not notice mod_perl wasn't being 
used until after installing and noticing the CGI accelerator was not active in 
the '/otrs/index.pl?Action=AdminServiceCenter' page.  What I had to do was 
reference the module correctly in the otrs.conf: "<IfModule perl_module>".  
Once I did that I run into the problem I am describing now.

All instructions were adhered to and all prerequisites pass such as:
/opt/otrs/bin/otrs.CheckModules.pl
perl -cw /opt/otrs/bin/cgi-bin/index.pl
perl -cw /opt/otrs/bin/cgi-bin/customer.pl
perl -cw /opt/otrs/bin/otrs.PostMaster.pl

Does anyone have any advice or thoughts?

Here are the perl and httpd version info:
/////////////////////////////////////
Summary of my perl5 (revision 5 version 16 subversion 3) configuration:

  Platform:
    osname=linux, osvers=2.6.18-164.el5az00, archname=x86_64-linux-thread-multi
    uname='linux gobi-build-31002.sea31.amazon.com 2.6.18-164.el5az00 #1 smp 
tue sep 15 14:19:07 edt 2009 x86_64 x86_64 x86_64 gnulinux '
    config_args='-des -Doptimize=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic 
-Dccdlflags=-Wl,--enable-new-dtags -Dlddlflags=-shared -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m64 -mtune=generic  -DDEBUGGING=-g -Dversion=5.16.3 
-Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, 
Inc. -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr/local 
-Dsitelib=/usr/local/share/perl5 -Dsitearch=/usr/local/lib64/perl5 
-Dprivlib=/usr/share/perl5 -Dvendorlib=/usr/share/perl5/vendor_perl 
-Darchlib=/usr/lib64/perl5 -Dvendorarch=/usr/lib64/perl5/vendor_perl 
-Darchname=x86_64-linux-thread-multi -Dlibpth=/usr/local/lib64 /lib64 
/usr/lib64 -Duseshrplib -Dusethreads -Duseithreads -Dusedtrace=/usr/bin/dtrace 
-Duselargefiles -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog 
-Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincomp
 at5005 -Uversiononly -Dpager=/usr/bin/less -isr -Dd_gethostent_r_proto 
-Ud_endhostent_r_proto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto 
-Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto 
-Dscriptdir=/usr/bin -Dusesitecustomize'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe 
-fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64',
    optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe 
-fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.8.2 20131212 (Red Hat 4.8.2-7)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -fstack-protector'
    libpth=/usr/local/lib64 /lib64 /usr/lib64
    libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.17'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, 
ccdlflags='-Wl,--enable-new-dtags -Wl,-rpath,/usr/lib64/perl5/CORE'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m64 -mtune=generic '


Characteristics of this binary (from libperl):
  Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
                        PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT
                        PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT_ALL
                        USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
                        USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
                        USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
                        USE_REENTRANT_API USE_SITECUSTOMIZE
  Locally applied patches:
        Fedora Patch1: Removes date check, Fedora/RHEL specific
        Fedora Patch3: support for libdir64
        Fedora Patch4: use libresolv instead of libbind
        Fedora Patch5: USE_MM_LD_RUN_PATH
        Fedora Patch6: Skip hostname tests, due to builders not being network 
capable
        Fedora Patch7: Dont run one io test due to random builder failures
        Fedora Patch9: Fix find2perl to translate ? glob properly (RT#113054)
        Fedora Patch10: Fix broken atof (RT#109318)
        Fedora Patch13: Clear $@ before "do" I/O error (RT#113730)
        Fedora Patch14: Do not truncate syscall() return value to 32 bits 
(RT#113980)
        Fedora Patch15: Override the Pod::Simple::parse_file (CPANRT#77530)
        Fedora Patch16: Do not leak with attribute on my variable (RT#114764)
        Fedora Patch17: Allow operator after numeric keyword argument 
(RT#105924)
        Fedora Patch18: Extend stack in File::Glob::glob, (RT#114984)
        Fedora Patch19: Do not crash when vivifying $|
        Fedora Patch20: Fix misparsing of maketext strings (CVE-2012-6329)
        Fedora Patch21: Add NAME headings to CPAN modules (CPANRT#73396)
        Fedora Patch22: Fix leaking tied hashes (RT#107000) [1]
        Fedora Patch23: Fix leaking tied hashes (RT#107000) [2]
        Fedora Patch24: Fix leaking tied hashes (RT#107000) [3]
        Fedora Patch25: Fix dead lock in PerlIO after fork from thread 
(RT#106212)
        Fedora Patch26: Make regexp safe in a signal handler (RT#114878)
        Fedora Patch27: Update h2ph(1) documentation (RT#117647)
        Fedora Patch28: Update pod2html(1) documentation (RT#117623)
  Built under linux
  Compiled at Apr  2 2014 18:13:49
  @INC:
    /usr/local/lib64/perl5
    /usr/local/share/perl5
    /usr/lib64/perl5/vendor_perl
    /usr/share/perl5/vendor_perl
    /usr/lib64/perl5
    /usr/share/perl5
    .
/////////////////////////////////////
Server version: Apache/2.4.9 (Amazon)
Server built:   Apr  1 2014 05:31:18
Server's Module Magic Number: 20120211:31
Server loaded:  APR 1.5.0, APR-UTIL 1.4.1
Compiled using: APR 1.5.0, APR-UTIL 1.4.1
Architecture:   64-bit
Server MPM:     prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/etc/httpd"
 -D SUEXEC_BIN="/usr/sbin/suexec"
 -D DEFAULT_PIDLOG="/var/run/httpd/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Reply via email to