in reply to Help with Apache::RegistryLoader

We can't just help you based on this information.
You should at least give the following information.
- What server are you on (windows / linux / bsd)
- How is apache compiled (did you install a binary package?)
- What are the specs of the server
- Versions of your software
etc.etc.

Then you might get possible ideas to search for:
- Did you try each script separately?
- Are you referencing scripts to eachother, and are there circular references?
- Do you use strict and warnings
- Do the scripts work properly without preloading?


Please send an example of a script that doesn't preload.

"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.

Replies are listed 'Best First'.
Re^2: Help with Apache::RegistryLoader
by Anonymous Monk on Jul 07, 2005 at 05:02 UTC
    My problem is that I can not get apache::registryloader to install at all.. It hangs during install. My scripts work fine and is on a linux machine.
      You still don't give enough information about the problem, but if you can't get it to work, lets try a work-around:
      Why don't you try to use a 'startup.pl' script to compile your modules in the first apache server?
      example for apache2:
      # in /etc/apache2/mods-enabled/perl.conf: PerlModule Apache2 PerlModule ModPerl::Registry PerlInitHandler Apache::Reload PerlRequire /etc/apache2/startup.pl # in /etc/apache2/startup.pl use lib qw(/var/www/cgi-bin /var/www/cgi-bin/modules); use DBI; use CGI qw(:cgi); use File::Find; use HTML::Template; use OwnModulesHere; print STDERR "Pre-loading HTML Templates...\n"; if (1) { find( sub { return unless /\.tmpl$/; HTML::Template->new( filename => "$File::Find::dir/$_", cache => 1, ); }, '/var/www/TemplatesFolder', ); }
      "We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.
        well tried using use lib in my startup.pl file. but doesn't seem to be doing anything.

        use CGI (); use Image::Size (); use Imager (); use strict; use CGI::Carp qw(fatalsToBrowser); CGI->compile(':all'); use lib ("cgi-bin/beta.pl"); use lib ("cgi-bin/betaupload.pl"); BEGIN { unshift(@INC, '/var/www/perl'); } 1;
      Did you install mod_perl? If so, you already have Apache::RegistryLoader. It comes with mod_perl.
      Define "Install".

      Do you mean the initial install (from CPAN presumably) or the "working" install done by running Apache2?

      CountZero

      "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law