perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Duncan <...@atmail.nl>
Subject Apache2::Reload weird stuff
Date Thu, 23 Jun 2005 03:10:30 GMT
<html>

<P>Hello!</P>
<P>We write an application called "@Mail" - <A href="http://atmail.com/">http://atmail.com/</A>
- Which is written in Perl and configured to use mod-perl</P>
<P>However, with the latest Fedora-core 4 with Apache2::Reload, we cannot get our application
running under mod-perl to correctly detect/refresh a Config.pm file that contains runtime
settings ( which can be changed via a Webadmin )</P>
<P>I've validated the file is reloaded:</P>
<P>[Wed Jun 22 17:31:05 2005] Config.pm: Apache2::Reload: process 21651 reloading Atmail::Config
from Atmail/Config.pm<BR>
[Wed Jun 22 17:31:05 2005] Config.pm: Apache2::Reload: process 21655 reloading Atmail::Config
from Atmail/Config.pm</P>
<P>However any script that uses the Atmail::Config module under mod-perl, will randomly
show the updated settings, and other times not.</P>
<P>We use the /etc/httpd/conf.d/perlatmail.conf settings of:</P>
<P># This module is required, to reload any modules in the<BR>
# atmail application. If the WebAdmin saves settings in<BR>
# the Webadmin, the changes are automatically reloaded<BR>
PerlInitHandler Apache2::Reload<BR>
PerlSetVar ReloadAll Off<BR>
PerlSetVar ReloadModules "Atmail::Config"<BR>
PerlSetEnv PERL5LIB /usr/local/atmail/webmail/libs/</P>
<P>-</P>
<P>I've also modified all the scripts that use the module to call it like:</P>
<P>use Atmail::Config;</P>
<P>to:</P>
<P>require Atmail::Config; Atmail::Config-&gt;import();<BR>
use Atmail::Config;</P>
<P>But no luck either . . .</P>
<P>-</P>
<P>Also tried touching the files that used the module, however Apache was then crashing
randomly.</P>
<P>[Wed Jun 22 16:49:16 2005] -e: Apache2::Reload: Checking mtime of main.pm<BR>
[Wed Jun 22 16:49:17 2005] [notice] child pid 20626 exit signal Segmentation fault (11)<BR>
[Wed Jun 22 16:49:19 2005] -e: Apache2::Reload: Checking mtime of main.pm<BR>
[Wed Jun 22 16:49:20 2005] [notice] child pid 20627 exit signal Segmentation fault (11)<BR>
[Wed Jun 22 16:49:21 2005] -e: Apache2::Reload: Checking mtime of main.pm<BR>
[Wed Jun 22 16:49:22 2005] [notice] child pid 20631 exit signal Segmentation fault (11)</P>
<P>-</P>
<P>We didn't have this problem under mod-perl 1.9X . . . </P>
<P>Any ideas/suggestions? Am I overlooking something really obvious? Any ideas would
help!</P>
<P>&nbsp;</P>
</html><BR><hr>Msg sent via @Mail v4 - http://atmail.com/

Mime
View raw message