Re: $r->document_root

2005-02-19 Thread Geoffrey Young
> So unless I miss something we have two options: > > 1) nuke that method completely > > 2) either provide a new method that restores the data using a > preallocated string from the server pool or do that internally in the > server > > 3) or change $r->document_root method to accept the pool ob

Re: $r->document_root

2005-02-19 Thread Joe Schaefer
Stas Bekman <[EMAIL PROTECTED]> writes: [...] > I was just adding a note to the API method doc saying: > >it's important to mention that at the end of each request where >you modify this setting you absolutely must restore it to its >original value. > > but it doesn't work, since the

Re: exec and detach a subprocess

2005-02-19 Thread Igor Shevchenko
On Saturday 19 February 2005 03:06, Stas Bekman wrote: > What about? > $r->spawn_proc_prog > http://perl.apache.org/docs/2.0/api/Apache/SubProcess.html#C_spawn_proc_pro >g_ Thanks for those links, Stas! I had to find them by myself as they are in docs... The following worked for me: A helper su

Re: exec and detach a subprocess

2005-02-19 Thread Stas Bekman
Igor Shevchenko wrote: On Saturday 19 February 2005 03:06, Stas Bekman wrote: What about? $r->spawn_proc_prog http://perl.apache.org/docs/2.0/api/Apache/SubProcess.html#C_spawn_proc_pro g_ Thanks for those links, Stas! I had to find them by myself as they are in docs... The following worked for

Re: exec and detach a subprocess

2005-02-19 Thread Stas Bekman
please check one more thing where is your cwd in the spawned script, it should be '/'. in mp1 one had to manually chdir '/' in the script, but I believe the Apache C API called from spawn_proc_prog does it for you. Is that right? > CORE::exit(0); and you don't need this either, especiall if you

Re: exec and detach a subprocess

2005-02-19 Thread Igor Shevchenko
On Saturday 19 February 2005 18:44, you wrote: > Igor Shevchenko wrote: > > On Saturday 19 February 2005 03:06, Stas Bekman wrote: > >>What about? > >>$r->spawn_proc_prog > >>http://perl.apache.org/docs/2.0/api/Apache/SubProcess.html#C_spawn_proc_p > >>ro g_ > > > > Thanks for those links, Stas! I

Re: exec and detach a subprocess

2005-02-19 Thread Stas Bekman
Igor Shevchenko wrote: [...] exec ( @ARGV ); why do you need to call exec() here? It doesn't detach if you don't call it? I think it should make no difference at all. I need to run the real script somehow, hence the call to "exec". yes, of course, so this was just a wrapper. But you end up with ye

Re: setting up static and dynamic Apache 2.0 instructions for MP2 newbie

2005-02-19 Thread Stas Bekman
Adam Prime x443 wrote: I am pretty comfortable with setting up a static front end that proxies to a mod_perl server listening on 127.0.0.1 with Apache 1.x and mod_perl 1.x, and mod_rpaf. Are there any caveats I should know about before getting this working on 2.0 before I start setting it up? I ha

Re: exec and detach a subprocess

2005-02-19 Thread Igor Shevchenko
On Saturday 19 February 2005 18:51, you wrote: > please check one more thing where is your cwd in the spawned script, it > should be '/'. in mp1 one had to manually chdir '/' in the script, but I > believe the Apache C API called from spawn_proc_prog does it for you. Is > that right? Checked, it w

Re: $r->document_root

2005-02-19 Thread Stas Bekman
Geoffrey Young wrote: take a look at the implementation in mp1 - why won't something like that work, so long as we're in prefork? i.e. create a special scalar (quoting from mp1): SV *doc_root = perl_get_sv("Apache::Server::DocumentRoot", TRUE); sv_setsv(doc_root, ST(1)); con

Re: exec and detach a subprocess

2005-02-19 Thread Stas Bekman
Igor Shevchenko wrote: On Saturday 19 February 2005 18:51, you wrote: please check one more thing where is your cwd in the spawned script, it should be '/'. in mp1 one had to manually chdir '/' in the script, but I believe the Apache C API called from spawn_proc_prog does it for you. Is that right?

Trouble Setting POST_MAX

2005-02-19 Thread jonathan vanasco
preface -- sorry if this is a double post, i accidentally sent from another address earlier, and i believe this list doesn't post non-subscriber messages. Admittedly, this is due to user error and incompetence mod_perl2 / apache2 / libaprq is the latest This works: sub handler {

Re: $r->document_root

2005-02-19 Thread Geoffrey Young
> The question is whether we want to make that docroot change persistent > across requests [1] or per-request[2]. Geoff's proposal matches the > former [1]behavior, whereas Joe's the latter[2]. > > I tend to think that per-request[2] is the sane solution. That's because > you can never know wheth

Controlling licensed software?

2005-02-19 Thread Chris
Greetings, We would like to provide a software package that uses mod_perl that clients can rent from us, which gets installed on their machine. We would like to build some type of license checking, but considering its easy to tamper with perl code what options do i have? We would like to be ab