On Thu, 2 Jan 2003, Dennis Daupert wrote:
>
> Bill Moseley said:
> >> Variable "$DEFAULT_CONFIG_FILE" will not stay shared at
> >> /usr/local/apache/perl/swishdir/swish.cgi line 142.
>
> > Are you running the script under mod_perl with Apache::Registry by
> chance?
> > That message happens when code gets wrapped inside of an outer
> subroutine.
>
> > And if so, you don't need to run it as an Apache::Registry script -- just
> > run it as a mod_perl handler.
>
> That helps, thanks Bill! I moved the script to the cgi-bin, pulling
> mod_perl
> and Apache::Registry out of the equation, and it ran fine. I got no
> "variables
> will not stay shared" nor any "missing bracket" msgs. I'll look into
> running it
> as a handler. I appreciate the tip.
Great.
Running it as a mod_perl handler is not hard to setup. perldoc
swish.cgi should give some examples. You will appreciate the speed
improvement under mod_perl!
--
Bill Moseley moseley@hank.org
Received on Thu Jan 2 19:28:58 2003