#1  
Old 30th March 2013, 00:34
vinnymeyer vinnymeyer is offline
Junior Member
 
Join Date: Mar 2013
Location: Upstate NY, USA
Posts: 3
Thanks: 4
Thanked 0 Times in 0 Posts
Default Apache2/Reload.pm issue

I'm running a brand-new installation of ISPConfig under Centos6.4. Everything installed fairly easily, and seemed to be working ok, with three sites hosted. When adding the 4th site, however, ISPConfig froze. Restarting httpd fails, with the following entry in /var/log/httpd/error_log:

[Fri Mar 29 17:55:44 2013] [error] Can't locate Apache2/Reload.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at (eval 8) line 3.\n

I'm pretty new as a sysadmin, and have spent a couple hours ramping up the learning curve.. and found this code in the entry for the site in /etc/httpd/conf/sites-available/ has this code in it:

<IfModule mod_perl.c>
PerlModule ModPerl::Registry
PerlModule Apache2::Reload
<Directory /var/www/meyerandmalin.com/web>
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</Directory>
<Files *.pl>
SetHandler perl-script
</Files>
</IfModule>


It kinda makes sense, if you're going to make a change in ModPerl to restart Perl (hence the "Apache2::Reload).. but did I miss a step where this is installed? It does not appear to be included in Centos, and has to be built.. and it depends on something else being installed to be able to build.

I commented this out in the site's config file, after which httpd will now start and server comes up.

I'm new at all this - am I missing something?
Reply With Quote
Sponsored Links
  #2  
Old 30th March 2013, 00:50
compugraphix compugraphix is offline
Member
 
Join Date: Jul 2010
Posts: 39
Thanks: 6
Thanked 1 Time in 1 Post
Default

did you do step 15?
http://www.howtoforge.com/perfect-se...ispconfig-3-p4

there you must install perl
Reply With Quote
  #3  
Old 30th March 2013, 03:03
vinnymeyer vinnymeyer is offline
Junior Member
 
Join Date: Mar 2013
Location: Upstate NY, USA
Posts: 3
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Yes, I did - Apache::Reload is no longer packaged with Perl - has to be downloaded from cpan and compiled. Found this while looking for an answer today:

http://www.gossamer-threads.com/list.../modperl/98870

I installed cpan, and got the source for Apache::Reload from there, but doesn't build without another missing piece:

Can't locate ModPerl/MM.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 41.

getting ModPerl::MM from cpan and trying to build it yields:

Can't locate ExtUtils/Embed.pm in @INC (@INC contains: lib Apache-Test/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at lib/Apache2/Build.pm line 27.

I know almost nothing about Perl and its environment, so I'm not comfortable digging any deeper to figure out what pieces to put together make the pieces to put together to build Apache2::Restart. If someone has a bit of a handle on this, as far as either getting it packaged so it can be installed with rpm, or suggesting the steps to build this so it can be added to the Perfect Server how-to, I would be very grateful.
Reply With Quote
  #4  
Old 30th March 2013, 12:32
compugraphix compugraphix is offline
Member
 
Join Date: Jul 2010
Posts: 39
Thanks: 6
Thanked 1 Time in 1 Post
Default

Don't know if it's useful for you but here a perl tutorial

http://www.thegeekstuff.com/2008/09/...-cpan-command/
Reply With Quote
  #5  
Old 31st March 2013, 03:23
vinnymeyer vinnymeyer is offline
Junior Member
 
Join Date: Mar 2013
Location: Upstate NY, USA
Posts: 3
Thanks: 4
Thanked 0 Times in 0 Posts
Default

OK.. we got it fixed today. Apache2::Reload needs ModPerl::MM, which needs Embed, which if you build it in place needs other things. Fortunately the Embed module is packaged in an rpm, which makes adding Embed at least fairly painless to add to your system. For Centos6.4 you need to do the following:

1) yum install perl-ExtUtils-Embed
2) download from cpam ModPerl::MM and build it, then
3) download from cpam Apache2::Reload and build it.

Hope this helps someone. The steps to actually do this should be added to the installation howto for ISPConfig3.
Reply With Quote
  #6  
Old 11th August 2014, 10:41
deunan deunan is offline
Junior Member
 
Join Date: Sep 2009
Posts: 9
Thanks: 0
Thanked 5 Times in 3 Posts
 
Default

Hello everyone,

I too faced with the same problem -

[Mon Aug 11 03:22:33 2014] [error] Can't locate Apache2/Reload.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 . /etc/httpd) at (eval 8) line 3.\n

Using RPMFORGE's package but with an extra config -

perl-Module-Reload-1.07-1.2.el6.rf.noarch

Code:
ln -s /usr/share/perl5/vendor_perl/Module/Reload.pm /usr/lib/perl5/vendor_perl/Apache2/Reload.pm
The RPM installs the perl module on a different location -

Code:
# rpm -ql perl-Module-Reload-1.07-1.2.el6.rf.noarch
/usr/share/man/man3/Module::Reload.3pm.gz
/usr/share/perl5/vendor_perl/Module/Reload.pm
So far my installation works and the configuration is working fine.

Hope this solves someone else issue too.
Reply With Quote
The Following User Says Thank You to deunan For This Useful Post:
till (11th August 2014)
Reply

Bookmarks

Tags
apache2/reload.pm

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3 Single server issues on POP3/IMAP/ MyDNS vk1003 Installation/Configuration 7 17th July 2012 16:25
Incoming Emails abintipl Installation/Configuration 3 11th May 2011 10:03
The dreaded OpenSuse/Postfix issue pinky Installation/Configuration 2 11th April 2008 23:35
DNS MX Issue jmead Installation/Configuration 3 29th November 2007 11:06
iptables issue with xen perfect setup - debian alexnz HOWTO-Related Questions 3 25th November 2006 14:49


All times are GMT +2. The time now is 10:53.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.