I'm trying to do some development work with mod_perl and find
restarting the server a pain. So I setup Apache::Reload, but it
doesn't seem to want to see my local devel directory all the time.
Here's my settings
Apache/2.0.40
mod_perl-1.99_7
Linux 2.4.20-8 (RedHat9 I think)
Here's my perl.conf (sourced by httpd.conf)
----start----------------
LoadModule perl_module modules/mod_perl.so
PerlSetEnv PERL5LIB /home/bruce/public_html/ffball/myff
PerlSetVar INC /home/bruce/public_html/ffball/myff
PerlModule Apache2
PerlModule Apache::Reload
PerlInitHandler Apache::Reload
PerlSetVar ReloadDebug On
# PerlSetVar ReloadModules "FFMgr::*"
# This will allow execution of mod_perl to compile your scripts to
# subroutines which it will execute directly, avoiding the costly
# compile process for most requests.
#
Alias /perl /var/www/perl
<Directory /var/www/perl>
SetHandler perl-script
PerlHandler ModPerl::Registry::handler
PerlOptions +ParseHeaders
Options +ExecCGI
</Directory>
<Directory /home/bruce/public_html>
<FilesMatch "\.(pl|pm|cgi)$">
SetHandler perl-script
PerlHandler ModPerl::Registry::handler
PerlOptions +ParseHeaders
Options +ExecCGI
</FilesMatch>
</Directory>
----end-------------------
The PerlSetVar INC line was a futile test.
Here's the problem. It seems that the reload module is finding the
local modules okay as it shows up in the error_log as checking the
mtime. But when they do change, it dies when it tries to reload
them and says they aren't in the @INC path.
So it's like it is half working.
Has anyone else seen this problem and have a possible fix?
Thanks
-Bruce
restarting the server a pain. So I setup Apache::Reload, but it
doesn't seem to want to see my local devel directory all the time.
Here's my settings
Apache/2.0.40
mod_perl-1.99_7
Linux 2.4.20-8 (RedHat9 I think)
Here's my perl.conf (sourced by httpd.conf)
----start----------------
LoadModule perl_module modules/mod_perl.so
PerlSetEnv PERL5LIB /home/bruce/public_html/ffball/myff
PerlSetVar INC /home/bruce/public_html/ffball/myff
PerlModule Apache2
PerlModule Apache::Reload
PerlInitHandler Apache::Reload
PerlSetVar ReloadDebug On
# PerlSetVar ReloadModules "FFMgr::*"
# This will allow execution of mod_perl to compile your scripts to
# subroutines which it will execute directly, avoiding the costly
# compile process for most requests.
#
Alias /perl /var/www/perl
<Directory /var/www/perl>
SetHandler perl-script
PerlHandler ModPerl::Registry::handler
PerlOptions +ParseHeaders
Options +ExecCGI
</Directory>
<Directory /home/bruce/public_html>
<FilesMatch "\.(pl|pm|cgi)$">
SetHandler perl-script
PerlHandler ModPerl::Registry::handler
PerlOptions +ParseHeaders
Options +ExecCGI
</FilesMatch>
</Directory>
----end-------------------
The PerlSetVar INC line was a futile test.
Here's the problem. It seems that the reload module is finding the
local modules okay as it shows up in the error_log as checking the
mtime. But when they do change, it dies when it tries to reload
them and says they aren't in the @INC path.
So it's like it is half working.
Has anyone else seen this problem and have a possible fix?
Thanks
-Bruce
www.bluewolverine.com
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software