Re: Apache::DBI->connect_on_init in BEGIN?

2000-05-15 Thread Doug MacEachern
> the problem is i can't seem to find a way to get configration variables > from httpd.conf inside a BEGIN or a PerlChildInitHandler. i set the > variables with PerlSetVar inside sections. use Apache->server->dir_config as eric already suggested to you. you'll have to move the PerlSetVar out

Re: Apache::DBI->connect_on_init in BEGIN?

2000-05-15 Thread svante sörmark
Doug MacEachern wrote: > > > connect_on_init was written to be a PerlChildInitHandler, it doesn't make > sense to use it anywhere else. ok, that would accomplish pretty much the same thing i guess. the problem is i can't seem to find a way to get configration variables from httpd.conf inside

Re: Zombie processes under mod_perl

2000-05-15 Thread Doug MacEachern
On Mon, 15 May 2000, Leonardo Madrigal wrote: > Hi everyone! > > Im working on some scripts that run under mod_perl via > Apache::Registry, on the latest stable versions of mod_perl and apache > under FreeBSD 3.3-stable. > > > This scripts make authentication to cybercash using the api that

Re: mod_perl-perl5.6.0

2000-05-15 Thread Doug MacEachern
On Mon, 15 May 2000, Asghar Nafarieh wrote: > I did it and still I get the same error. ok, then you'll have to get a stacktrace (see SUPPORT doc for tips), assuming this is a core dump.

RE: CGI::Delete for Apache::Request

2000-05-15 Thread Doug MacEachern
> +=item parms thanks. the reason i've been holding off though, was because i wanted to rename parms() to be something a little more different from param(). i've asked for suggestions a few times, got any? :) p.s. from cvs Changes: Apache::Table->unset can now be called with an array reference

Re: Apache::DBI->connect_on_init in BEGIN?

2000-05-15 Thread Doug MacEachern
On Sun, 14 May 2000, svante [iso-8859-1] sörmark wrote: > hi all, > > what i'd like to do is "pre-initialize" my DBI connections from whithin > my PerlHandler's BEGIN block. > > something like this: > BEGIN { > if ( Apache->dir_config('CONNECT_ON_INIT') { > Apache::DBI->con

Re: Virtual servers mixing up "require"d scripts

2000-05-15 Thread Doug MacEachern
> give me some insight into this problem: > - Is this a known bug, or an unavoidable by-product of the way mod_perl works? > > - Is it related to the fact I'm using Apache::Registry? Would switching to the > > native Apache API fix it? > - Is it related to the fact I'm using "require", with ".pl

Re: Undefined DESTROY() in error_log

2000-05-15 Thread Doug MacEachern
On Sat, 13 May 2000, Kenneth Lee wrote: > I see this error message in my error_log, > > [Sat May 13 13:06:38 2000] [error](in cleanup) Undefined method > HTML::FastTemplate::DESTROY at > /usr/lib/perl5/site_perl/5.6.0/i686-linux/Apache/Registry.pm line 144 > > Does it mean that I have to ad

Re: Problem with @INC

2000-05-15 Thread Doug MacEachern
On Sat, 13 May 2000, Robert Nice wrote: > use lib '../site_perl'; it's been explained, 'use lib' happens at compile time (once per-script) and @INC is reset to whatever it was startup time after each request. the simple solution for you, which i didn't see mentioned, is to modify @INC at runti

Re: works on linux, doesn't work on sun.

2000-05-15 Thread Doug MacEachern
> > > > > > SetHandler perl-script > > > PerlSendHeader on > > > PerlHandler Mf7 > > > >Options +ExecCGI strange that would fix things, unless your Mf7 module is testing for $r->allow_options & OPT_EXECCGI mod_perl never checks that bit, it's up

Re: Segmentation fault (11) with mod_perl 1.23...

2000-05-15 Thread Doug MacEachern
On Fri, 12 May 2000, Mark Haviland wrote: > Hey all... > > I just upgraded my box to redhat 6.2.2 and compiled Apache 1.3.12 with > mod_perl (1.23) as a DSO (outside the Apache tree using apxs). Now, > modules that use to work are suddenly causing seg faults. The one in > particular that doens

Re: hang with $r->internal_redirect

2000-05-15 Thread Doug MacEachern
On Wed, 10 May 2000, Louis-David Mitterrand wrote: > > I am trying an internal_redirect from a POST with Mason and Apache just > hangs: > > $r->method('GET'); > $r->method_number(M_GET); > $r->headers_in->unset('Content-length'); > $r->internal_redirect_handler("/wronglogin.md"); > $m->abort(30

Re: without Apache::Registry, redefined subs still?

2000-05-15 Thread Doug MacEachern
On Tue, 9 May 2000, w trillich wrote: > redefined subs with perlrun? it's just a warning. but, that warning should go away if you use the cvs version of Apache::PerlRun

Re: how to disable/control mod_perl SSI arg encoding

2000-05-15 Thread Doug MacEachern
On Sat, 15 Apr 2000, S Page wrote: > Hey folks, my first post. > > I'm writing an Apache SSI as a mod_perl module. Apache 1.3.4 / mod_perl > 1.18. > When Web designers pass it HTML character entities, by the time they > arrive at my module some become 8-bit characters. > > For example, > > >

Problem: Apache/mod_perl/NT host won't close smtp connection

2000-05-15 Thread Chuck Goehring
    Having a problem where the connections to an smtp server doesn't seam to close correctly on Windows NT. I've tried two separate mailing modules (MIME::Lite and Mail::Sender). Neither will send a second time without re-starting Apache. The Lite module uses the Net::smtp module and the S

ANNOUNCE: Apache::SSI v2.12

2000-05-15 Thread Ken Williams
The URL http://mathforum.com/~ken/modules/archive/Apache-SSI-2.12.tar.gz has entered CPAN as file: $CPAN/authors/id/KWILLIAMS/Apache-SSI-2.12.tar.gz size: 16154 bytes md5: 9d999ef37a1815f1767918336c15df49 Changes since 2.11: 2.12 Mon May 15 18:50:37 EDT 2000 Don't force conte

Re: make test of Apache::SSI

2000-05-15 Thread Ken Williams
[EMAIL PROTECTED] (Perrin Harkins) wrote: >On Mon, 15 May 2000, Ken Williams wrote: >> I'd prefer to figure out why the test is failing, because most of the real >> testing is done using that test. But it's difficult because I've never seen >> the test fail. > >Looks like the problem lies in thi

RE: make test of Apache::SSI

2000-05-15 Thread Wang, Pin-Chieh
The message is T/fake ..ok T/real ..Starting http server...cat: cannot open t/httpd.pid Sh: usage: kill [ [ -sig ] id...| -l ] I looked t/real.t file where user, group are pwang,user respectively, port is 80. Thanks, PC Wang -Original Message- F

Re: make test of Apache::SSI

2000-05-15 Thread Perrin Harkins
On Mon, 15 May 2000, Ken Williams wrote: > I'd prefer to figure out why the test is failing, because most of the real > testing is done using that test. But it's difficult because I've never seen > the test fail. Looks like the problem lies in this line in t/real.t: my $HTTPD = "/home/ken/http/

Re: make test of Apache::SSI

2000-05-15 Thread Ken Williams
[EMAIL PROTECTED] (Perrin Harkins) wrote: >On Mon, 15 May 2000, Wang, Pin-Chieh wrote: >> I am installing Apache::SSI under Mod_perl.. >> When I ran make test I have permission denied when it trying to start httpd >> , therefore the test failed. > >It doesn't work for me either. I think Ken was

Re: Access to userland objects in different phases

2000-05-15 Thread Chris Winters
* Ken Miller ([EMAIL PROTECTED]) [000515 17:16]: > In the content serving phase I have a Database services object which > manages all access to/from the database. The DB::Services object is > created the first time the handler is hit; the $dbs is made available by > creating a symtab entry, so al

Access to userland objects in different phases

2000-05-15 Thread Ken Miller
In the content serving phase I have a Database services object which manages all access to/from the database. The DB::Services object is created the first time the handler is hit; the $dbs is made available by creating a symtab entry, so all my Mason components can get at the database easily. I

Re: mod_perl-perl5.6.0

2000-05-15 Thread Asghar Nafarieh
I did it and still I get the same error. Thanks, -Asghar > X-UIDL: 9e7ed088da7c074d11e1654b1ba4fb0c > X-Authentication-Warning: mojo.covalent.net: dougm owned process doing -bs > Date: Fri, 12 May 2000 18:00:31 -0700 (PDT) > From: Doug MacEachern <[EMAIL PROTECTED]> > To: Asghar Nafarieh <[EMA

Re: newbie question - require

2000-05-15 Thread w trillich
Brett Lee wrote: > but with mod_perl, the info in the hash tables seems to be found "every > other refresh" (which has me stumped). > > Would anyone be able to suggest a solution or reading material on this? don't forget to check your stuff out with single-process mode, via 'apachectl stop; apac

Re: KHTTPD for static and Apache/mod_perl for dynamic??

2000-05-15 Thread shane
It was an overstatement in my Zeal :-). Clearly not. Up to maybe 10x. That's the best improvement I've ever seen. But..., realistically with a well tuned apache vs. a well tuned static accelerator, probably 4x is tops. (Sorry :-) Static accels handle the thundering herd problem better as wel

Re: KHTTPD for static and Apache/mod_perl for dynamic??

2000-05-15 Thread Ask Bjoern Hansen
On Mon, 15 May 2000 [EMAIL PROTECTED] wrote: [...] > These httpd static accelerators do 100 times better than apache does. I don't believe that's true. And it doesn't change Perrin's point (that apache is sufficient for most pipes anyway). - ask -- ask bjoern hansen -

Re: Zombie processes under mod_perl

2000-05-15 Thread Stas Bekman
On Mon, 15 May 2000, Leonardo Madrigal wrote: > Hi everyone! > > Im working on some scripts that run under mod_perl via > Apache::Registry, on the latest stable versions of mod_perl and apache > under FreeBSD 3.3-stable. > > > This scripts make authentication to cybercash using the api that

Re: KHTTPD for static and Apache/mod_perl for dynamic??

2000-05-15 Thread shane
On Mon, May 15, 2000 at 12:20:19PM -0700, Perrin Harkins wrote: > On Mon, 15 May 2000, raptor wrote: > > My question is instead of using two Apache servers OR Apache+proxy scenario > > (static vs dynamic pages) will it be possible to leave static pages to kHTTPD > > and run only one APACHE server.

[ANNOUNCE] AxKit 0.62

2000-05-15 Thread Matt Sergeant
Just to keep things ticking over, I've released 0.62 hot on the heels of 0.61. This is a minor update with a fix for the external parsed entities cache invalidation code (which now works!) and the addition of support for for XPathScript (which allowed me to modularise the docbook stylesheets). A

Re: make test of Apache::SSI

2000-05-15 Thread Perrin Harkins
On Mon, 15 May 2000, Wang, Pin-Chieh wrote: > I am installing Apache::SSI under Mod_perl.. > When I ran make test I have permission denied when it trying to start httpd > , therefore the test failed. It doesn't work for me either. I think Ken was going to make this test optional. Anyway, if you

Re: KHTTPD for static and Apache/mod_perl for dynamic??

2000-05-15 Thread Perrin Harkins
On Mon, 15 May 2000, raptor wrote: > My question is instead of using two Apache servers OR Apache+proxy scenario > (static vs dynamic pages) will it be possible to leave static pages to kHTTPD > and run only one APACHE server. It will, but you're missing part of the benefit from the proxy sce

Zombie processes under mod_perl

2000-05-15 Thread Leonardo Madrigal
Hi everyone! Im working on some scripts that run under mod_perl via Apache::Registry, on the latest stable versions of mod_perl and apache under FreeBSD 3.3-stable. This scripts make authentication to cybercash using the api that they provide. The problem is that in the API are 2 programs (

Re: KHTTPD for static and Apache/mod_perl for dynamic??

2000-05-15 Thread shane
> > I noticed that all the phhttpd pages have disappeared. What's up? > > Hmm.., you are right. Well..., Zach doesn't work for redhat anymore. > I don't have a copy of the latest source..., well, I do, but it's > riddled with my own changes. I was wondering when they were going to > take down

Re: KHTTPD for static and Apache/mod_perl for dynamic??

2000-05-15 Thread shane
On Mon, May 15, 2000 at 09:48:07AM -0700, Jeffrey W. Baker wrote: > On Mon, 15 May 2000 [EMAIL PROTECTED] wrote: > > > On Mon, May 15, 2000 at 04:37:06PM -0400, raptor wrote: > > > hi, > > > > > > My question is instead of using two Apache servers OR Apache+proxy scenario > > > (static vs dynami

Re: database efficiency

2000-05-15 Thread Jeffrey W. Baker
On Mon, 15 May 2000, Autarch wrote: > On Mon, 15 May 2000, Jay Jacobs wrote: > > > mod_perl" and there's one thing I don't quite grok about it. Let's say I > > have a site that goes through select statements like water. If I were to > > cache the statement handler (as described in the guide),

Re: database efficiency

2000-05-15 Thread Jeffrey W. Baker
On Mon, 15 May 2000, Ken Y. Clark wrote: > On Mon, 15 May 2000, Jeffrey W. Baker wrote: > > > On Mon, 15 May 2000, Jay Jacobs wrote: > > > > > I've been reading over the guide on "Efficient Work with Databases under > > > mod_perl" and there's one thing I don't quite grok about it. Let's say I

Re: database efficiency

2000-05-15 Thread Ken Y. Clark
On Mon, 15 May 2000, Jeffrey W. Baker wrote: > On Mon, 15 May 2000, Jay Jacobs wrote: > > > I've been reading over the guide on "Efficient Work with Databases under > > mod_perl" and there's one thing I don't quite grok about it. Let's say I > > have a site that goes through select statements l

Re: database efficiency

2000-05-15 Thread Autarch
On Mon, 15 May 2000, Jay Jacobs wrote: > mod_perl" and there's one thing I don't quite grok about it. Let's say I > have a site that goes through select statements like water. If I were to > cache the statement handler (as described in the guide), how does the > database (database dependant) ha

Re: Source Code Shows Up in IE But Not Netscape

2000-05-15 Thread Keith G. Murphy
Bri Carey wrote: [cut] > > You can see this now at http://www.uncricket.com/index1.html > I don't know if you're still having this problem, but when I look at it, I don't even see an tag, which doesn't seem to bother Netscape too much, but...

Re: database efficiency

2000-05-15 Thread Jeffrey W. Baker
On Mon, 15 May 2000, Jay Jacobs wrote: > I've been reading over the guide on "Efficient Work with Databases under > mod_perl" and there's one thing I don't quite grok about it. Let's say I > have a site that goes through select statements like water. If I were to > cache the statement handler (

systems, examples, samples

2000-05-15 Thread .......mxx
Hello, please, I would like to know some systems/scripts using mod_perl+mysql. like news, forum, poll... I would like to test, and learn how people are using mod_perl. thanks marcus _ Quer linha desocupada nas Internets gratis? Multidiscado

database efficiency

2000-05-15 Thread Jay Jacobs
I've been reading over the guide on "Efficient Work with Databases under mod_perl" and there's one thing I don't quite grok about it. Let's say I have a site that goes through select statements like water. If I were to cache the statement handler (as described in the guide), how does the databas

make test of Apache::SSI

2000-05-15 Thread Wang, Pin-Chieh
Hi, I am installing Apache::SSI under Mod_perl.. When I ran make test I have permission denied when it trying to start httpd , therefore the test failed. My httpd was running under (root, other) as the (user, group). At perl Makefile.PL I specified the user as root and group as other, but still c

RE: Header Sending Bug?

2000-05-15 Thread Geoffrey Young
> -Original Message- > From: Jeff Beard [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 14, 2000 11:42 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: Header Sending Bug? > > > I don't see a problem with this but maybe I'm missing your point. :) well, if his point was that

Re: KHTTPD for static and Apache/mod_perl for dynamic??

2000-05-15 Thread shane
On Mon, May 15, 2000 at 04:37:06PM -0400, raptor wrote: > hi, > > My question is instead of using two Apache servers OR Apache+proxy scenario > (static vs dynamic pages) will it be possible to leave static pages to kHTTPD > and run only one APACHE server. > Did someone tried it... Well, I'm

RE: CGI::Delete for Apache::Request

2000-05-15 Thread Geoffrey Young
> -Original Message- > From: Doug MacEachern [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 12, 2000 2:02 PM > To: Michael Blakeley > Cc: [EMAIL PROTECTED] > Subject: Re: CGI::Delete for Apache::Request > > > On Sat, 6 May 2000, Michael Blakeley wrote: > > > I've been migrating some c

Re: KHTTPD for static and Apache/mod_perl for dynamic??

2000-05-15 Thread Vivek Khera
> "r" == raptor <[EMAIL PROTECTED]> writes: r> My question is instead of using two Apache servers OR Apache+proxy r> scenario (static vs dynamic pages) will it be possible to leave r> static pages to kHTTPD and run only one APACHE server. Did r> someone tried it... Even without knowing

KHTTPD for static and Apache/mod_perl for dynamic??

2000-05-15 Thread raptor
hi, My question is instead of using two Apache servers OR Apache+proxy scenario (static vs dynamic pages) will it be possible to leave static pages to kHTTPD and run only one APACHE server. Did someone tried it... Thanx = iVAN [EMAIL PROTECTED] =

RE: newbie question - require

2000-05-15 Thread Graf, Chris
Check the mod_perl guide for the usage of require() and do(). You probably want to use do() instead of require(). Chris -Original Message- From: Brett Lee [mailto:[EMAIL PROTECTED]] Sent: Monday, May 15, 2000 7:56 AM To: [EMAIL PROTECTED] Subject: newbie question - require In moving fr

newbie question - require

2000-05-15 Thread Brett Lee
In moving from CGI.pm to mod_perl, I ran across the common error with functions that exist in scripts pulled in with 'require'. Mod_perl_traps.html had the solution. Similarly, am using ('require') another file which holds all the hash tables (countries, states, etc.) that my scripts need to ref

Re: mod_perl and ssi

2000-05-15 Thread Kenneth Lee
I'm sending them because some of my scripts have to do redirection. But why the problem only happens _occasionally_? Anyway, in the meantime I'm passing the outputs directly to Apache::SSI, Apache::SSI->new( $output, Apache->request)->output; Ridiculous enough, but it seems to work f

Re: mod_perl and ssi

2000-05-15 Thread Ken Williams
Regarding the Filter approach, are you sending the headers yourself? You shouldn't. Filter will do that for you. Don't know much about the OutputChain approach. [EMAIL PROTECTED] (Kenneth Lee) wrote: >When I try the RegistryFilter+SSI approach, the headers generated by >my scripts _occasiona

RE: Apache::DBI->connect_on_init in BEGIN?

2000-05-15 Thread Eric Cholet
> hi all, > > what i'd like to do is "pre-initialize" my DBI connections from whithin > my PerlHandler's BEGIN block. > > something like this: > BEGIN { > if ( Apache->dir_config('CONNECT_ON_INIT') { > Apache::DBI->connect_on_init(Apache->dir_config('DBI_INFO'); > } >

Re: mod_perl and ssi

2000-05-15 Thread Kenneth Lee
When I try the RegistryFilter+SSI approach, the headers generated by my scripts _occasionally_ show up in the output (but as I see in SSI.pm, there's really no header output when Filter is On). Provided that PerlSendHeader is On, if I set it to Off, the headers always show up in the output. I

Re: Oops Re: ANNOUNCE: mod_perl guide version 1.23

2000-05-15 Thread w trillich
Stas Bekman wrote: > > On Sun, 14 May 2000, w trillich wrote: > > > i noticed this in the html source of the new guide > > (this was on porting cgi to mod_perl): > > > HREF="style.css" TITLE="refstyle"> > > > > > >