Re: Trying mod_perl for the first time - how to enable it?

2005-01-26 Thread Jay Scherrer
Looks like you didn't tell http.conf where your .pl scripts are. My httpd.conf includes a : ##Mod_Perl stuff Alias /perl/ /var/www/perl/ SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlOptions +ParseHeaders Options +ExecCGI # Chapter 2: Practical

Re: Trying mod_perl for the first time - how to enable it?

2005-01-26 Thread Randy Kobes
On Wed, 26 Jan 2005, Edward Wijaya wrote: > Dear all, > > I am trying my mod_perl in my Apache webserver for the first time (under > Mdk-Linux). > I have created a simple "print hello world" script with the name 'hello.pl' > and I stored it under 'var/www/cgi-bin/' but whenever I try to open > the

Re: Debugging Out of Memory Errors

2005-01-26 Thread Stas Bekman
Ken Simpson wrote: Is there an equivalent in mod_perl 2? I guess it wasn't on the todo list, so we have missed it while porting mp1 core modules to mp2 It looks like it's trivial to port it to mp2. Feel free to port that and post a patch to include it in the mp2 core, or someone will do that lat

Re: Trying mod_perl for the first time - how to enable it?

2005-01-26 Thread Edward Wijaya
Thanks so much for the reply Sean, On Wed, 26 Jan 2005 20:58:02 -0500, Sean Davis <[EMAIL PROTECTED]> wrote: Edward, Did you look at the server log? Sean,here is my error server log: http://pastebot.nd.edu/127?tx=on&submit=Format+it%21 Also, is you hello.pl script written as a handler or stra

Trying mod_perl for the first time - how to enable it?

2005-01-26 Thread Edward Wijaya
Dear all, I am trying my mod_perl in my Apache webserver for the first time (under Mdk-Linux). I have created a simple "print hello world" script with the name 'hello.pl' and I stored it under 'var/www/cgi-bin/' but whenever I try to open the script with http://localhost/cgi-bin/hello.pl It give

Re: Debugging Out of Memory Errors

2005-01-26 Thread Ken Simpson
> >Is there an equivalent in mod_perl 2? > > I guess it wasn't on the todo list, so we have missed it while porting mp1 > core modules to mp2 It looks like it's trivial to port it to mp2. Feel > free to port that and post a patch to include it in the mp2 core, or > someone will do that later.

Re: Debugging Out of Memory Errors

2005-01-26 Thread Stas Bekman
Ken Simpson wrote: A module I wrote is somehow running out of memory and I need to find out why and where the problem is occurring. Searching through the archives, I discovered that in mod_perl 1.0 you could set the Apache::Debug level to 4: use Apache::Debug level => 4; (see the mod_perl book:

Re: make test failed on solaris 8

2005-01-26 Thread Stas Bekman
Tulan, in the future please refrain from posting 1MB emails to the public mailing list. The best way to accomplish that is to upload the file somewhere and post a link here. Besides there is no need to post a truss output to debug a perl error. (usually). Tulan W. Hu wrote: I found a line in o

Re: Apache Reload -- Subroutine xx redefined

2005-01-26 Thread David Romero
David Romero wrote: Hi all. i have a problem with apache reload module, when im restart apache all works fine, but on frist change on my module apache reload return an error this is my error [Mon Jan 24 13:00:36 2005] [error] [client 127.0.0.1] Subroutine display redefined at /usr/local/unicon i

Re: AuthenHandler talking to ErrorDocument

2005-01-26 Thread Sean Davis
David, As another approach to the same problem, I created a custom response for FORBIDDEN. I use a template to customize the response to the situation. In some cases, it simply presents a login page (if no parameters are passed in). In others (bad form parameters), it gives the appropriate e

Re: Debugging Out of Memory Errors

2005-01-26 Thread Ken Simpson
> Doing this would cause a special memory allocator to be used so that > Carp could print out a stack trace in the event of an out of memory > error. > > Is there an equivalent in mod_perl? Sorry -- I meant to say, "Is there an equivalent in mod_perl 2.0". Thanks, Ken -- MailChannels: Assured

Debugging Out of Memory Errors

2005-01-26 Thread Ken Simpson
A module I wrote is somehow running out of memory and I need to find out why and where the problem is occurring. Searching through the archives, I discovered that in mod_perl 1.0 you could set the Apache::Debug level to 4: use Apache::Debug level => 4; (see the mod_perl book: http://modperlbook

Re: minor bugfix for Apache::Test

2005-01-26 Thread Geoffrey Young
Torsten Foertsch wrote: > On Wednesday 26 January 2005 15:28, Geoffrey Young wrote: > >>>- modperl_handler_t *handler; >>>+ modperl_handler_t *handler=0; >> >>hmm, what's that about? > > > It cures this warning: > IncludeHook.xs: In function `handle_perl': > IncludeHook.xs:49: warning: `ha

Re: make test failed on solaris 8

2005-01-26 Thread Tulan W. Hu
only can post partial output from truss because i got mail failure notify from apache site.I found a line in our private module AP_INIT_TAKE12("require", set_subscribe_slot,(void*)APR_XtOffsetOf(LN_auth_config_rec, auth_LNgrpfile),OR_AUTHCFG, "" ), ... I changed it to AP_INIT_RAW_ARGS("require",...

Re: AuthenHandler talking to ErrorDocument

2005-01-26 Thread David Dorward
Geoffrey Young wrote: What is the accepted way to pass a message from the AuthenHandler to the ErrorDocument? my $notes = ($r->prev || $r)->notes; That works a charm. Thanks. -- David Dorward

Re: AuthenHandler talking to ErrorDocument

2005-01-26 Thread Geoffrey Young
David Dorward wrote: > Currently I have an AuthenHandler that (amazingly enough) handles > authentication for a group of webpages. An ErrorDoctype directive points > users who haven't logged in, or who failed to login to a login form. > > I'd like to be able to display a message to user who fail

AuthenHandler talking to ErrorDocument

2005-01-26 Thread David Dorward
Currently I have an AuthenHandler that (amazingly enough) handles authentication for a group of webpages. An ErrorDoctype directive points users who haven't logged in, or who failed to login to a login form. I'd like to be able to display a message to user who failed to login explaining the rea

Re: minor bugfix for Apache::Test

2005-01-26 Thread Torsten Foertsch
On Wednesday 26 January 2005 15:28, Geoffrey Young wrote: > > -  modperl_handler_t  *handler; > > +  modperl_handler_t  *handler=0; > > hmm, what's that about? It cures this warning: IncludeHook.xs: In function `handle_perl': IncludeHook.xs:49: warning: `handler' might be used uninitialized in thi

Re: minor bugfix for Apache::Test

2005-01-26 Thread Geoffrey Young
Geoffrey Young wrote: > for > example, I can't use the same perl for mp1 and mp2 if I want this approach > to work, since ModPerl::MM::WriteMakefile() will choose the one I installed > last to build against. blarg, blarg, blarg. that was supposed to be Apache 2.0 and Apache 2.1, not mp1 and mp

Re: minor bugfix for Apache::Test

2005-01-26 Thread Geoffrey Young
Torsten Foertsch wrote: > On Wednesday 26 January 2005 13:42, Geoffrey Young wrote: > >>Torsten Foertsch wrote: >> >>>Hi, >>> >>>while trying out Apache-IncludeHook-2.00_02 >> >>I haven't touched that in a while, so if you see it failing to work on >>newish apache just holler. other than that,

Re: make test failed on solaris 8

2005-01-26 Thread Tulan W. Hu
We have two private add on modules that have been converted from v1.x to v2. I'll check them again. Tulan - Original Message - From: "Tulan W. Hu" <[EMAIL PROTECTED]> To: "Stas Bekman" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, January 26, 2005 7:52 AM Subject: Re: make test failed on sola

Re: minor bugfix for Apache::Test

2005-01-26 Thread Torsten Foertsch
On Wednesday 26 January 2005 13:42, Geoffrey Young wrote: > Torsten Foertsch wrote: > > Hi, > > > > while trying out Apache-IncludeHook-2.00_02 > > I haven't touched that in a while, so if you see it failing to work on > newish apache just holler. other than that, I hope you like it :) Yes, since

Re: make test failed on solaris 8

2005-01-26 Thread Tulan W. Hu
Original Message - From: "Stas Bekman" <[EMAIL PROTECTED]> > Tulan W. Hu wrote: > > >>I think I need to fix the syntax error in the httpd.conf first. > >>however, I cannot just modify the httpd.conf file under t/conf > >>since it will be overwrite when I run make test. > > Run t/TEST inst

Re: minor bugfix for Apache::Test

2005-01-26 Thread Geoffrey Young
Torsten Foertsch wrote: > Hi, > > while trying out Apache-IncludeHook-2.00_02 I haven't touched that in a while, so if you see it failing to work on newish apache just holler. other than that, I hope you like it :) > I stumbled across the lack of > Apache::Test::have(). hmm... is have() rea

Re: recompiling the modules

2005-01-26 Thread Marcello
Philippe M. Chiasson ha scritto: Marcello wrote: Octavian Rasnita ha scritto: Hi, Is it possible to let modperl recompile the modules if they are modified? I've seen that if I modify a perl module, Apache doesn't check to cee if the module has been modified, so it keeps running the old code from

minor bugfix for Apache::Test

2005-01-26 Thread Torsten Foertsch
Hi, while trying out Apache-IncludeHook-2.00_02 I stumbled across the lack of Apache::Test::have(). This patch cures it. Torsten --- Apache-Test/lib/Apache/Test.pm~ 2005-01-22 09:28:06.0 +0100 +++ Apache-Test/lib/Apache/Test.pm 2005-01-26 10:18:09.819907681 +0100 @@ -29,12 +29,