RE: [mp2] Trouble with Apache::Filter input and mod_dav

2004-03-15 Thread Jeff Finn
Thanks. This fixes the problem I was having. Jeff -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 7:52 PM To: Stas Bekman Cc: Jeff Finn; [EMAIL PROTECTED] Subject: Re: [mp2] Trouble with Apache::Filter input and mod_dav Stas Bekman wrote: >

Re: [BUG] Apache::Registry / 404 Not Found

2004-03-15 Thread Geoffrey Young
Jean-Michel Hiver wrote: > >> I don't think this is ever going to work in mp1 under Registry. for the >> most part, allowing a script to set the status of the response line is a >> hack - I'm not sure how widely documented it is (I've only ever seen >> it in >> comments in Apache core myself) a

Re: CGI header mod_perl 1.99_13 (bug report)

2004-03-15 Thread Stas Bekman
Arnaud Blancher wrote: hi Stas, here the complete bug report, Thanks Arnaud, 2. Used Components and their Configuration: *** mod_perl version 1.9913 [...] *** Packages of interest status: Apache::Request: - CGI: 3.04 LWP: 5.65 mod_perl : 1.9912, 1.9912, 1.9913 You h

Re: [mp2] Trouble with Apache::Filter input and mod_dav

2004-03-15 Thread Stas Bekman
Stas Bekman wrote: Jeff Finn wrote: Hi, I'm trying to write an input filter that will read the request body data, do some transformation, and then write the output to a file using mod_dav: DAV on PerlInputFilterHandlerFileDataLog::input The problem I'm having is that whenever I tr

Re: [BUG] Apache::Registry / 404 Not Found

2004-03-15 Thread Jean-Michel Hiver
Perrin Harkins wrote: On Mon, 2004-03-15 at 16:23, Jean-Michel Hiver wrote: Yes, what I'm trying to achieve is get Apache::Registry to send custom 404 pages - just like under mod_cgi. I assume that means you want to be able to run the exact same script under mod_cgi? Well, yes - otherwise

Re: [mp2] Server variables available to other programs?

2004-03-15 Thread Stas Bekman
Charlie Smith wrote: It would seem that some Server variables, when run under mod_perl are not being set or made available to other programs - ie. php's HTTP_SERVER_VAR['PHP_AUTH_USER']. Any ideas? I've a php program that is being called via command line from a PERL script. Running without mo

RE: Apache::AuthCookie LOGIN action, where / is protected

2004-03-15 Thread Elizabeth Cortell
Brian, Yes, it's frustrating. I got it to work by a) protecting the docroot with a Directory directive b) placing the LOGIN outside the docroot (in a sibling directory, error) and specifying it with a Location directive Rafael suggested the Location directive around the same time it occurred

[mp2] Server variables available to other programs?

2004-03-15 Thread Charlie Smith
It would seem that some Server variables, when run under mod_perl are not being set or made available to other programs - ie. php's HTTP_SERVER_VAR['PHP_AUTH_USER']. Any ideas? I've a php program that is being called via command line from a PERL script. Running without mod_perl turned on, the

Re: # of threads needed to run winnt mpm correlates to # of vhosts

2004-03-15 Thread Stas Bekman
Stas Bekman wrote: Steve Hay wrote: Bill Stoddard wrote: Just committed a fix (please test) to Apache HTTPD 2.1. Patch is here (it should apply to 2.0): http://cvs.apache.org/viewcvs.cgi/httpd-2.0/server/mpm/winnt/child.c?r1=1.32&r2=1.33 Brilliant! That's fixed it straight away -- the mp2

Re: [mp2] Makefile.PL does not detect correct MPM

2004-03-15 Thread Matthew T. Atkinson
'ellow, Thanks for your e-mail. I think that it might be something wrong with the packages I am using... On Mon, 2004-03-15 at 20:33, Stas Bekman wrote: > please show us the output of: > > /usr/bin/apxs2 -q MPM_NAME It returns ``worker''. But I definitely have the prefork and prefork developm

Re: [mp2] RegistryCooker.pm reporting argument isn't numeric.

2004-03-15 Thread Charlie Smith
I added 'use strict', declared all the undeclares, replaced most of the local() declarations with my() and corrected a typing problem where a var was being set to an integer concatenated onto a bare character (not enclosed in quotes). No error now.I'll bet it was the use of local() types whe

Re: [mp2] Trouble with Apache::Filter input and mod_dav

2004-03-15 Thread Stas Bekman
Jeff Finn wrote: Hi, I'm trying to write an input filter that will read the request body data, do some transformation, and then write the output to a file using mod_dav: DAV on PerlInputFilterHandler FileDataLog::input The problem I'm having is that whenever I try to PUT a file

Re: [BUG] Apache::Registry / 404 Not Found

2004-03-15 Thread Perrin Harkins
On Mon, 2004-03-15 at 16:23, Jean-Michel Hiver wrote: > Yes, what I'm trying to achieve is get Apache::Registry to send custom > 404 pages - just like under mod_cgi. I assume that means you want to be able to run the exact same script under mod_cgi? And you don't want to make this script be your

Re: [mp2] RegistryCooker.pm reporting argument isn't numeric.

2004-03-15 Thread Charlie Smith
>>> "Stas Bekman" 3/15/2004 1:28:36 PM >>> Charlie Smith wrote: > > Bug Report: > -8<-- Start Bug Report 8<-- > 1. Problem Description: [mp2] RegistryCooker.pm reporting argument isn't > numeric. > With mod_perl turned on I'm getting following error on i

Re: [BUG] Apache::Registry / 404 Not Found

2004-03-15 Thread Jean-Michel Hiver
Didn't Geoff already answer this question for you? You can't do this in this way with PerlSendHeader turned on. I'm not sure if your goal here is to send your own custom 404 error or to have apache pick it up and send the ErrorDocument without your content. If you explain what you're trying to a

Re: [BUG] Apache::Registry / 404 Not Found

2004-03-15 Thread Jean-Michel Hiver
I don't think this is ever going to work in mp1 under Registry. for the most part, allowing a script to set the status of the response line is a hack - I'm not sure how widely documented it is (I've only ever seen it in comments in Apache core myself) and I don't see the code at all in Apache 2.0

Re: failed to get bucket brigade

2004-03-15 Thread Stas Bekman
Batara Kesuma wrote: Hi, I am not sure if this is mod_perl bug. I have this error in my log: [Mon Mar 15 00:12:38 2004] [error] [client 211.128.98.215] failed to get bucket brigade: 70014:End of file found, referer: http://domain.com/edit_photo.pl There are like thousands of them. The system will f

[mp2] Trouble with Apache::Filter input and mod_dav

2004-03-15 Thread Jeff Finn
Hi, I'm trying to write an input filter that will read the request body data, do some transformation, and then write the output to a file using mod_dav: DAV on PerlInputFilterHandler FileDataLog::input The problem I'm having is that whenever I try to PUT a file that contains n

Re: [mp2] Makefile.PL does not detect correct MPM

2004-03-15 Thread Stas Bekman
Matthew T. Atkinson wrote: 'ellow, I have been trying to compile mod_perl1.99_13 but have found what I believe to be a bug in the Makefile.PL. I am using Debian woody with the Apache2 from backports.org. I am using the prefork (Apache1-style) MPM because I read in the mod_perl2 documentation that

Re: [mp2] RegistryCooker.pm reporting argument isn't numeric.

2004-03-15 Thread Stas Bekman
Charlie Smith wrote: Bug Report: -8<-- Start Bug Report 8<-- 1. Problem Description: [mp2] RegistryCooker.pm reporting argument isn't numeric. With mod_perl turned on I'm getting following error on invokation of a PERL script that yeilds no such warning wi

[mp2] RegistryCooker.pm reporting argument isn't numeric.

2004-03-15 Thread Charlie Smith
Bug Report: -8<-- Start Bug Report 8<-- 1. Problem Description: [mp2] RegistryCooker.pm reporting argument isn't numeric. With mod_perl turned on I'm getting following error on invokation of a PERL script that yeilds no such warning with mod_perl turned

Re: [mp2] $ENV{MOD_PERL}

2004-03-15 Thread Stas Bekman
Charlie Smith wrote: Geoff and Stas, Thanks for your help so far. It's great to have such experts available such as yourselves. And the humor is even good to ;--)-- ;) The $ENV{MOD_PER} is being returned now with the following syntax in the httpd.conf file: Options Indexes FollowSymL

Re: [mp2] PerlPreConnectionHandler and subrequests detection?

2004-03-15 Thread Stas Bekman
John D.Lima wrote: On Mar 12, 2004, at 5:12 PM, Stas Bekman wrote: John D.Lima wrote: *snip* For clarity (?): my PerlPreConnectionHandler works great on browser requests coming into the proxy, but it runs again when the server response to the proxied request returns _to the proxy_. In this ser

Re: [BUG] Apache::Registry / 404 Not Found

2004-03-15 Thread Geoffrey Young
Jean-Michel Hiver wrote: > Description: > > > The following CGI script: > >print Content-Type: text/plain > >Document not found >EOF I don't think this is ever going to work in mp1 under Registry. for the most part, allowing a script to set the st

Re: mod_perl 1.99_13

2004-03-15 Thread Stas Bekman
Jie Gao wrote: [...] We need to write a generic function to resolve localhost and make sure that we get an ip and not ::1 on the ipv4 systems. If we get ::1 Apache won't start. Help to accomplish that is very appreciated. I have spent some time into this and found some interesting things. On a S

Re: Total newbie question

2004-03-15 Thread David Wilde
Ged, Yep, the commonapache.conf is a file included in apache2.conf (the renamed httpd.conf) in Gentoo by default. They do it that way so that they can eventually support multiple configurations OOTB. From the apache2.conf file: ### ### Global Configuration ### # Splitting up apache2.conf into

Re: [BUG] Apache::Registry / 404 Not Found

2004-03-15 Thread Perrin Harkins
On Mon, 2004-03-15 at 08:11, Jean-Michel Hiver wrote: > The following CGI script: > > print < Status: 404 Not Found > Content-Type: text/plain > > Document not found > EOF [...] > i.e. the Apache ErrorDocument is appended to the response. Didn't Geoff already answer this ques

Re: AuthCookieDBI configuration woes

2004-03-15 Thread Brian Clarkson
Perrin Harkins wrote: On Thu, 2004-03-11 at 11:17, Brian Clarkson wrote: I've never used any of the AuthCookie modules, but this error is coming from apache: http://httpd.apache.org/docs/misc/FAQ.html#authauthoritative It sounds like AuthCookieDBI is returning DECLINED (or rather AuthCookie is

Re: mod_perl 1.99 problem

2004-03-15 Thread Perrin Harkins
On Sun, 2004-03-14 at 22:03, Dzuy Nguyen wrote: > I'm trying to run mod_perl 2.0 on RH 9.0. Apache and mod_perl are RH's > out of the box rpm. Not a good idea. The version of mod_perl 2 that comes with RH 9 was released in September 2002, about a year and a half ago. That's just too old for so

Re: AuthCookieDBI configuration woes

2004-03-15 Thread Perrin Harkins
On Thu, 2004-03-11 at 11:17, Brian Clarkson wrote: > I thought I had my httpd.conf configured correctly for > Apache::AuthCookieDBI. the same ( well, close to the same ) setup > worked for Apache::AuthCookie [...] > the error message: > [Thu Mar 11 09:52:39 2004] [crit] [client 24.153.205.228

Re: [mp2] $ENV{MOD_PERL}

2004-03-15 Thread Perrin Harkins
On Mon, 2004-03-15 at 11:47, Charlie Smith wrote: > So I copied the stuff to create the package from the URL you listed. Yes, that's what you're supposed to do at the moment. Eventually, ModPerl::Registry will support this without the extra module. - Perrin -- Report problems: http://perl.a

Re: [mp2] $ENV{MOD_PERL}

2004-03-15 Thread Charlie Smith
Thanks Perrin. I tried putting the prefork directive in but still got the same kind of error in the log file but this time it can't find the ModPerl/RegistryPrefork.pm [Mon Mar 15 09:28:40 2004] [error] failed to resolve handler `ModPerl::RegistryPrefork' [Mon Mar 15 09:28:40 2004] [error] [clien

Re: Apache::AuthCookie LOGIN action, where / is protected

2004-03-15 Thread Brian Clarkson
Rafael Caceres wrote: You need to make some changes to your conf: Use , otherwise you are only protecting the "/" URL. that does seem to fix the issue there. # AuthType TestCookie::AuthCookieHandler AuthName TestCookie PerlAuthenHandler TestCookie::AuthCookieHandler->authenticate Pe

Re: Apache::AuthCookie LOGIN action, where / is protected

2004-03-15 Thread Rafael Caceres
Nick, You need to make some changes to your conf: On Mon, 2004-03-15 at 10:07, Brian Clarkson wrote: > Nick Phillips wrote: > > > On 13/03/2004, at 11:08 AM, Elizabeth Cortell wrote: > > > >> I have a question for experienced Apache::AuthCookie users. The > >> module's test suite protects dire

Re: Apache::AuthCookie LOGIN action, where / is protected

2004-03-15 Thread Brian Clarkson
Nick Phillips wrote: On 13/03/2004, at 11:08 AM, Elizabeth Cortell wrote: I have a question for experienced Apache::AuthCookie users. The module's test suite protects directories below the docroot and sets the action of the login form to /LOGIN, an unprotected location. This setup does not

[BUG] Apache::Registry / 404 Not Found

2004-03-15 Thread Jean-Michel Hiver
Description: The following CGI script: print < Document not found EOF Results in the following: Document not found 404 Not Found Not Found The requested URL /perl-bin/bug.pl was not found on this server. i.e. the Apache ErrorDocument is appended to the respon

Re: passing external data into modperl

2004-03-15 Thread Perrin Harkins
Ethan Joffe wrote: Is there a way to pass a value into apache such that each modperl process then has access to it? You have to use a sharing mechanism of some kind. IPC::MM, BerkeleyDB, and Cache::FastMmap are all very efficient for single machines. For clusters, a simple table in MySQL is al

Re: CGI header mod_perl 1.99_13 (bug report)

2004-03-15 Thread Arnaud Blancher
hi Stas, here the complete bug report, -8<-- Start Bug Report 8<-- 1. Problem Description: i have the message : [notice] child pid 3541 exit signal Segmentation fault (11) in the error_log not the first one when i call the script but when i have the message,

ANNOUNCE: Apache::PageKit 1.13

2004-03-15 Thread Boris Zentner
Hi, on the way to CPAN. 1.13 - Add scripts/pkit_rename_app.pl it helps to start new applications fast ( Boris Zentner ) - Add and tags. ( Boris Zentner ) - Fix filetest for upload_tmp_dir ( Boris Zentner ) - Fix locale support. One message was twi

ANNOUNCE: Embperl 2.0b11

2004-03-15 Thread Gerald Richter
The URL ftp://ftp.dev.ecos.de/pub/perl/embperl/Embperl-2.0b11.tar.gz has entered CPAN as file: $CPAN/authors/id/G/GR/GRICHTER/Embperl-2.0.b11.tar.gz size: 667792 bytes md5: a2f52aa51ad0185211200f4edc4b3248 Embperl is a system for building dynamic websites with Perl. It gives you the