perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Perl <kenp...@gmail.com>
Subject Re: reload or restart httpd
Date Tue, 07 Feb 2006 09:50:32 GMT
tried adding the two lines to the conf file, didn't work.

On 2/6/06, Sean Davis <sdavis2@mail.nih.gov> wrote:
>
>
>
> On 2/6/06 9:06 AM, "Ken Perl" <kenperl@gmail.com> wrote:
>
> > Yes, I am using Apache2, the doc is very useful.
> > in httpd.conf file, I use PerlInitHandler example.pm's handler() as
> > starting point, when I update the code in handler(), I didn't see the
> > updates, so I asked previous question.
> > After I read the head of the doc, I make sense that I need to modify
> > the global %INC after server is started.
> > I am going to do like this
> > sub handler {
> >         my $r = shift;
> >         my $s = Apache2::ServerUtil->server;
> >         my $WRoot = $s->dir_config('WRoot');
> >         use lib "$FindBin::Bin/$WRoot";
> > }
>
> Unless I am misunderstanding what you are trying to do, I think you just
> need to add these two lines to your httpd.conf to have any changed modules
> reloaded:
>
>  PerlModule Apache2::Reload
>  PerlInitHandler Apache2::Reload
>
> I don't think you have to do anything special with %INC.
>
> Sean
>
>
>


--
perl -e 'print unpack(u,"62V5N\"FME;G\!E<FQ`9VUA:6PN8V]M\"\@``
")'

Mime
View raw message