about ModPerl::Registry

about ModPerl::Registry

am 16.09.2011 06:12:44 von jeffpang

SGVsbG8sCgpXaGVuIG15IENHSSBzY3JpcHRzIGFyZSBtb3ZlZCB0byBydW4g dW5kZXIgTW9kUGVy
bDo6UmVnaXN0cnksIGFuZCB3aGVuIHRoZSBzY3JpcHQgaXMgY2hhbmdlZCwg c2hvdWxkIEkgcmVz
dGFydCBBcGFjaGUgZWFjaCB0aW1lPwpJIHdhcyB0aGlua2luZyBNb2RQZXJs OjpSZWdpc3RyeSAg
aXMgcnVubmluZyB0aGUgc2ltaWxpYXIgd2F5IGxpa2UgUEhQLCBidXQgd2hl biBwaHAgc2NyaXB0
IGlzIG1vZGlmaWVkIGl0IGRvZXNuJ3QgbmVlZCB0byByZXN0YXJ0IHRoZSB3 ZWJzZXJ2ZXIuCgpU
aGFua3MuCgoKLS0KICBKZWZmIFBhbmcKICBqZWZmcGFuZ0BtYWlsLnJ1Cg==

Re: about ModPerl::Registry

am 17.09.2011 05:33:29 von Scott Gifford

--20cf307760a38f355904ad1ac820
Content-Type: text/plain; charset=KOI8-R

On Fri, Sep 16, 2011 at 12:12 AM, Jeff Pang wrote:

> Hello,
>
> When my CGI scripts are moved to run under ModPerl::Registry, and when the
> script is changed, should I restart Apache each time?
>

Hi Jeff,

In general you do, but look at modules like
Apache2::Reload
for
ways to detect changed files then automatically reload the appropriate
modules.

The approach I usually use is to develop and test under CGI, then move to my
mod_perl environment once it is working reliably, and restart my server. In
my experience, that seems to be the most foolproof method.

Hope this helps,

------Scott.

--20cf307760a38f355904ad1ac820
Content-Type: text/html; charset=KOI8-R
Content-Transfer-Encoding: quoted-printable

On Fri, Sep 16, 2011 at 12:12 AM, Jeff Pang < =3D"mailto:jeffpang@mail.ru">jeffpang@mail.ru> wrote:
class=3D"gmail_quote">

0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hello,



When my CGI scripts are moved to run under ModPerl::Registry, and when the =
script is changed, should I restart Apache each time?
=

Hi Jeff,

In general you do, but loo=
k at modules like=9A Reload.html">Apache2::Reload=9Afor ways to detect changed files then au=
tomatically reload the appropriate modules.



The approach I usually use is to develop and test under=
CGI, then move to my mod_perl environment once it is working reliably, and=
restart my server. =9AIn my experience, that seems to be the most foolproo=
f method.


=9A
Hope this helps,

------Scott. div>



--20cf307760a38f355904ad1ac820--

Re: about ModPerl::Registry

am 17.09.2011 19:56:36 von Perrin Harkins

2011/9/16 Scott Gifford :
> On Fri, Sep 16, 2011 at 12:12 AM, Jeff Pang wrote:
>>
>> Hello,
>>
>> When my CGI scripts are moved to run under ModPerl::Registry, and when t=
he
>> script is changed, should I restart Apache each time?
>
> Hi Jeff,
> In general you do, but look at modules like=A0Apache2::Reload=A0for ways =
to
> detect changed files then automatically reload the appropriate modules.

This is true for modules, but for scripts running under Registry, it
should not be necessary. They are recompiled when the file changes.

- Perrin