Hi,
I installed Apache and mod_perl from yast, but the server would not start. I found this error in the log file:
[Sun Dec 27 12:05:10 2009] [error] Can’t locate Apache2/Reload.pm in @INC (@INC contains: …/…/ /opt/otrs/Kernel/cpan-lib /opt/otrs/ /srv/www/perl-lib /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl . /srv/www) at (eval 88) line 3.
[Sun Dec 27 12:05:10 2009] [error] Can’t load Perl module Apache2::Reload for server vulcan.fractasia.com:0, exiting…
No Reload.pm could be found anywhere on the system with locate. Yast also has no such module. I downloaded it from CPAN and tried to install it manually but the perl Makefile.pl process crashed because it could not find mod_perl.
I would rather not have half of Perl and Apache installed with Yast and half hand hacked. Software updated won’t know my stuff is there and version conflicts could cause unexpected weirdness.
Hi,
There seems to be some fallout from the above ugly hack. From this error message, I did another, ugly hack:
Global $r object is not available. Set:
PerlOptions +GlobalRequest
in httpd.conf at /usr/lib/perl5/5.10.0/CGI/Carp.pm line 553.
I added the line:
PerlOptions +GlobalRequest
to the <IfModule mod_perl.c> section of /etc/apache2/conf.d/mod_perl.conf. The $r object message is gone, but now every hit writes this to the error log:
[Sun Dec 27 13:32:19 2009] -e: failed to resolve handler Apache2::Reload
Is this going to do anything horrible or just fill up the error log?
Perl::Reload appears to be referenced in otrs.conf so it’s an OTRS requirement, not a mod_perl requirement. Therefore you would have had to get it from CPAN and install it yourself anyway. Sorry, I know nothing about OTRS. Maybe check the OTRS docs?
Hi All!
I did the same: moved otrs.conf file and it helped me too.
ok, but I didn’t do anything with my system before and it was working ok, till yesterday when i’ve seen this:
*Can’t locate Apache2/Reload.pm in @INC (@INC contains: …/…/ /opt/otrs/Kernel/cpan-lib /opt/otrs/ /srv/www/perl-lib /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl . /srv/www) at (eval 88) line 3.
*
messae in error log.
What is this magic “otrs” and how did this install without my permission… ?