Re: prob with dir_config at server startup

2001-01-02 Thread John K Sterling
the per_dir_configs (i.e. PerlSetVar) are not accessabled from the Apache::Server. They are only accessable from Apache::Request::dir_config. It makes sense if you think about it - a per_dir config can be different for each Location. If you need any config values in a PerlInitHandler, you need

Re: PerlSetupEnv Off not working

2001-01-02 Thread John K Sterling
t the page reads... > > PerlSetupEnv Off is another optimization you might consider. This > directive requires mod_perl 1.25 or later. > > but I run mod_perl 1.24, but http://perl.apache.org/dist/ makes no > reference to mod_perl 1.25 > > ? > > John K Sterling wrote: > > > > c

Re: PerlSetupEnv Off not working

2001-01-02 Thread John K Sterling
check the guide: http://thingy.kcilink.com/modperlguide/performance/PerlSetupEnv_Off.html > But %ENV population is expensive. Those who have moved to the Perl Apache API no >longer need this extra %ENV > population, and can gain by turning it Off. Scripts using the CGI.pm module require >Perl

Re: LWP and HTML::HeadParser....failed

2001-01-02 Thread John K Sterling
Yung Kwong Wing wrote: > > "[thekid@visors thekid]# perl -MCPAN -install LWP > Can't open perl script "LWP": No such file or directory" try: perl -MCPAN -e 'install "LWP"' sterling

Re: do I really need "mod_perl"

2000-12-30 Thread John K Sterling
read this: http://take23.org/whatis_mod_perl.xml it should explain all. sterling Yung Kwong Wing wrote: > Hi, > > Sorry for asking a stupid question, but I was wondering do I really need > to install "mod_perl" to get my website to work with CGI. > > It seems that after my unsuccessful attemp

Re: Proposals for ApacheCon 2001 in; help us choose! (fwd)

2000-12-21 Thread John K Sterling
> At 02:22 AM 12/22/00 +0100, Stas Bekman wrote: > > >Well, this is new. You choose what sessions at ApacheCon you want. > > > >I don't think it's a fair approach by ApacheCon committee, as by applying > >this approach they are going to make the big player even bigger and kill > >the emerging tech

Re: mod_perl in a shared hosting environment

2000-12-10 Thread John K. Sterling
yes - check out http://perl.apache.org/~dougm/modperl_2.0.html sterling On 10 Dec 2000, David Hodgkinson wrote: > > Just a thought, but will mod_perl and Apache 2.0 be better for this? > Will we be able to isolate different hosts' perl more easily? > >

Re: [OT] mod_motd

2000-12-07 Thread John K. Sterling
I think there's a Apache::Motd perl module, is that what your looking for? sterling On Thu, 7 Dec 2000, Jerrad Pierce wrote: > Am I losing my mind or is there a mod_motd for Apache floating around? > I haven't been able to find it anywhere, but I'm sure I've seen it. > (Checked Freshmeat, searc

Re: mod_perl with threaded Apache (eg Apache2)

2000-12-04 Thread John K. Sterling
This is doug macEachern's bag - those who were at apachecon in london saw the progress he had made at that point - its pretty sweet. check the archives for summaries of his presentation in late october. sterling On Mon, 4 Dec 2000, Robbie Lindauer wrote: > Is anyone working on an upgrade to m

Re: configuration file ( startup.pl )!!!

2000-11-20 Thread John K. Sterling
The below code in your startup.pl will have 1 connection per child. If you're apache config allows for 20 kids, each one will get its own connection to your database. There is no built in pooling support (though that will be trivial in 2.0) but usually having a connection per kid is what you're

Re: return from nested functions

2000-11-01 Thread John K. Sterling
On Wed, 1 Nov 2000, Paul J. Lucas wrote: > On Wed, 1 Nov 2000, John K. Sterling wrote: > > > even better: Apache->exit(SERVER_ERROR); > > The documentation for exit() deosnt' explicitly say you can do > that. It mentions only "0" and &quo

Re: return from nested functions

2000-11-01 Thread John K. Sterling
even better: Apache->exit(SERVER_ERROR);. or die SERVER_ERROR;. this is documented in the eagle book: ch9 - The Apache::Constants Class "... While the HTTP constants are generally used as return codes from handler subroutines, it is also possible to use the builtin die() function to jump out

Re: persistent database problem

2000-10-23 Thread John K. Sterling
The db connection happens once for each child - so every time you hit a child for the first time it will open up a new connection - you probably have apache configured to start with 4 or so kids. sterling On Mon, 23 Oct 2000, Differentiated Software Solutions Pvt. Ltd wrote: > Hi, > I hav

[PATCH] stop win32 crash when bringing down service

2000-10-20 Thread John K. Sterling
it appears that the mp dso was being unloaded before the cleanups were complete, causing a crash in cleanup_sv - ONLY when running as a service. still not sure why this happens, but this patch at least eliminates the crash. i believe this is only called before the process comes down (nt service