Suse 11.2 missing Perl module Apache2::Reload?

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.

Webmin shows Reload here:
<IfModule mod_perl> /etc/apache2/conf.d/otrs.conf (11)
Perlrequire /opt/otrs/scripts/apache2-perl-startup. … /etc/apache2/conf.d/otrs.conf (14)
PerlModule Apache2::Reload /etc/apache2/conf.d/otrs.conf (17)
PerlInitHandler Apache2::Reload /etc/apache2/conf.d/otrs.conf (18)

As an ugly hack, I manually copied the Reload.pm to /usr/lib/perl5/vendor_perl/5.10.0/Apache2.

Where is this module supposed to be? How badly did I screw up my system?

Thank you,
BrianP

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?

Thank you,
BrianP

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?

Ken_Yap,
I nuked the config file for otrs and everything works now. Thanks for spotting it. Too bad nobody tests this stuff before unleashing it :wink:

vulcan:/etc/apache2/conf.d # mv otrs.conf otrs.conf.afu

Thanks 1E6,
BrianP

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… ?

Thanx, best, Kris