Handler Concept / Question

2002-08-08 Thread David Cumming
The basic concept I want to accomplish is to allow for static and dynamic content to be accessed from any url and be transparent to the visitor.   i.e publish a static page called /foo/bar.htm have a dynamic page called /foo/foobar.htm   I imagine there are a couple of different ways to d

Re: PerlChildInitHandler doesn't work inside VirtualHost?

2002-08-08 Thread Rick Myers
On Aug 09, 2002 at 12:16:45 +1000, Cees Hek wrote: > Quoting Jason W May <[EMAIL PROTECTED]>: > > Running mod_perl 1.26 on Apache 1.3.24. > > > > I've found that if I place my PerlChildInitHandler inside a VirtualHost > > block, it is never called. > > It doesn't really make sense to put a PerlC

Re: mod perl load average too high

2002-08-08 Thread Ed Grimm
That looks like there's something that occasionally goes off and starts spinning, given the low memory usage and the fact that some processes using little cpu are also not swapped out. I suspect that one of your pages has a potential infinite loop that's being triggered. Try and catch at what po

Re: PerlChildInitHandler doesn't work inside VirtualHost?

2002-08-08 Thread Cees Hek
Quoting Jason W May <[EMAIL PROTECTED]>: > > Running mod_perl 1.26 on Apache 1.3.24. > > I've found that if I place my PerlChildInitHandler inside a VirtualHost > block, it is never called. It doesn't really make sense to put a PerlChildInitHandler inside a VirtualHost directive. It is only c

Re: Apache::DProf not working

2002-08-08 Thread Stas Bekman
Randy Harmon wrote: > I'm having trouble making Apache::DProf work. > > I've installed the module with CPAN, and I've added PerlModule Apache::DProf > at the top of my httpd.conf. I've verified with 'httpd -l' that > PerlChildInitHandler is OK - therefore, pushing a child-init handler should > b

Re: Verifying Which Handler

2002-08-08 Thread Stas Bekman
Jeff Crist wrote: > Can someone send me an example of a test Perl script that will display > which Perl handler Apache is using - Apache::Registry or PerlRun. > > We just migrated our website to a new server that was initially setup to > run Appache::Registry but we don't have time to cleanup

Can I change the browser's address/location?

2002-08-08 Thread Harry Zhu
Suppose I have a generic content handler to handle requst /step/1, /step/2, ..., /step/n SetHandler perl-script PerlHandler MyHandler #MyHandler.pm package MyHandler; sub handler { my $r=shift; my $step = substr($r->path_info(),1); #do something before fetch the content

Apache::DProf not working

2002-08-08 Thread Randy Harmon
I'm having trouble making Apache::DProf work. I've installed the module with CPAN, and I've added PerlModule Apache::DProf at the top of my httpd.conf. I've verified with 'httpd -l' that PerlChildInitHandler is OK - therefore, pushing a child-init handler should be OK, right? I've started the

RE: [Mason-devel] Re: ANNOUNCE: Mason 1.12

2002-08-08 Thread Ian Robertson
If you ax version numbers now, what happens if someone who already has a versioned copy of ApacheHandler installed asks CPAN to upgrade it? Will it conclude that it already has the most up to date version? For that matter, if another CPAN module simply lists H::M::AH as a dependency (as opposed t

How to detect data avaliability on ARP::Socket

2002-08-08 Thread Hideki Noma
I am currently developping a private module utilizing PerlProcessConnection handler and facing a bit of problem. (Apache::2.0.39 + mod_perl 1.99.04) This is the part of program: sub handler { my Apache::Connection $c = shift; my APR::Socket $socket = $c->client_socket; my($rlen, $

PerlChildInitHandler doesn't work inside VirtualHost?

2002-08-08 Thread Jason W May
Running mod_perl 1.26 on Apache 1.3.24. I've found that if I place my PerlChildInitHandler inside a VirtualHost block, it is never called. This works: ... PerlModule Foo PerlChildInitHandlerFoo::handler ... PerlHandler MyModule ... but this doesn't: Pe

Re: solaris 2.6, mod_perl 1.27, apache 1.3.26, resulting serverfails

2002-08-08 Thread John E. Mendenhall
Lupe, On Thu, 8 Aug 2002, Lupe Christoph wrote: > On Thursday, 2002-08-08 at 10:16:44 -0700, John E. Mendenhall wrote: > > On Thu, 8 Aug 2002, Lupe Christoph wrote: > > > > Syntax error on line 1341 of /usr/local/apache/conf/httpd.conf: > > > > Can't locate loadable object for module Apache::Log

Re: Getting ugly: mod_perl and traditional forms of writing CGI

2002-08-08 Thread Andrew Ho
Hello, SS>The below is a sample bit of code I am using for very simple forum SS>software. It acts erratically, sometimes seeing the contents of the form SS>being POSTed to it and sometimes not. If a form POSTed is under 500 SS>bytes in length it works fine. Anything higher is hit and miss. SS> SS

Verifying Which Handler

2002-08-08 Thread Jeff Crist
Title: Message Can someone send me an example of a test Perl script that will display which Perl handler Apache is using - Apache::Registry or PerlRun.   We just migrated our website to a new server that was initially setup to run Appache::Registry but we don't have time to cleanup the code

Re: solaris 2.6, mod_perl 1.27, apache 1.3.26, resulting server fails

2002-08-08 Thread Lupe Christoph
On Thursday, 2002-08-08 at 10:16:44 -0700, John E. Mendenhall wrote: > On Thu, 8 Aug 2002, Lupe Christoph wrote: > > There is no Log.so in my Solaris 8/Apache 1.3.22/mod_perl 1.26 > > installation. While I have src/modules/perl/Log.xs, this is not > > used, but the Log.pm. ... and Log.pm ist a P

Re: Getting ugly: mod_perl and traditional forms of writing CGI

2002-08-08 Thread sully
On 8/8/2002 at 2:44 PM Richard Dice wrote: >> So the idea when migrating from CGI to mod_perl for this most-finished > > project was: Change as little as possible. > >That's a very sound idea. But I have a question: regarding the piece of >code that you provided here, is that the original code