RE: General mod_perl httpd configuration question

2005-04-07 Thread Simon Matthews
Title: RE: General mod_perl httpd configuration question > On Thu, 2005-04-07 at 13:13 -0500, Frank Wiles wrote: >>   I read it as he needed a way to configure Apache via Perl at >>   startup, not on the fly.  Based on his original post I think they are >>   using code to generate a httpd.conf

Re: [PATCH] Re: [BUG] Bad refcounting in Apache->push_handlers()

2005-04-07 Thread Stas Bekman
Stas Bekman wrote: Still need to check this one: Now with threaded perl 5.8.6 everything works fine, but: t/directive/perlrequire fails with: can't find ANONSUB top entry (get) The patch below fixes the non-threaded case. with non-threaded 5.6.1 a bunch of tests fail with: Undefined subroutine &mai

Re: setting http output filter priority?

2005-04-07 Thread Geoffrey Young
Jeff Ambrosino wrote: > I > also think it might be a useful feature to be able to set mod_perl's > filter priority either programmatically, or at least as a compile-time > option. yes, we've discussed both of these options on the dev list, so you can check the archives for all the issues (look f

Re: [PATCH] Re: [BUG] Bad refcounting in Apache->push_handlers()

2005-04-07 Thread Stas Bekman
Dominique Quatravaux wrote: Any chance you could add a test to the modperl2 test suite that I can reproduce the problem with? I finally got around to doing that, sorry for the delay. Here is a new test case, with inspiration from TestHooks::inlined_handlers. Warning: since Apache->server->push_ha

Re: setting http output filter priority?

2005-04-07 Thread Jeff Ambrosino
I'm logging some closure to this one... I was able to get this to work by modifying the priorities of mod_perl/src/modules/perlmod_perl.c's http output filter to AP_FTYPE_CONTENT_SET-1, and then httpd-2.0.53/modules/experimental/mod_cache.c's cache_save and cache_out filter to AP_FTYPE_CONTENT_SET

Re: General mod_perl httpd configuration question

2005-04-07 Thread Perrin Harkins
On Thu, 2005-04-07 at 13:13 -0500, Frank Wiles wrote: > I read it as he needed a way to configure Apache via Perl at > startup, not on the fly. Based on his original post I think they are > using code to generate a httpd.conf and restarting. I suppose Simon can speak for himself, but I read

Re: General mod_perl httpd configuration question

2005-04-07 Thread Frank Wiles
On Thu, 07 Apr 2005 12:19:22 -0400 Perrin Harkins <[EMAIL PROTECTED]> wrote: > On Thu, 2005-04-07 at 10:16 -0400, Stas Bekman wrote: > > > Yes this is possible with both versions. I couldn't find any > > > 2.0 specific docs on this, but here is the relevant section of > > > the 1.0 docs: >

RE: General mod_perl httpd configuration question

2005-04-07 Thread Simon Matthews
Title: RE: General mod_perl httpd configuration question > of the  1.0 > >>> docs: > >>> > >>>http://perl.apache.org/docs/1.0/guide/config.html#Apache_Co nfiguratio >>>n_in_Perl >> >>mp2.0: >>http://perl.apache.org/docs/2.0/user/config/config.html#C_E_lt_PerlE_g >>t___Sections > > > Does

Re: How to parse GET and POST methods in mod_perl 2.0

2005-04-07 Thread Perrin Harkins
On Thu, 2005-04-07 at 15:44 +, Durga Prasad Mohapatra wrote: > I have done all of my programs using apache1.3 and modperl 1.0. Now i want to > port all of my modperl programs to mod_perl 2.0 and apache2 without using > Apache::compat. I am facing problem in first step, for parsing methods i.e

Re: How to parse GET and POST methods in mod_perl 2.0

2005-04-07 Thread Jonathan Vanasco
I just do this: use Apache::Request () sub handler { my $r = shift; my $apr = Apache::Request->new( $r , DISABLE_UPLOADS=>0, POST_MAX=>10 ); $get_var = $apr->param('fieldname'); $post_var = $apr->param('fieldname'); } On Apr 7, 2005, at 11:44 AM, Durga Prasad Mohapatra wrote: H

Re: General mod_perl httpd configuration question

2005-04-07 Thread Stas Bekman
Perrin Harkins wrote: On Thu, 2005-04-07 at 10:16 -0400, Stas Bekman wrote: Yes this is possible with both versions. I couldn't find any 2.0 specific docs on this, but here is the relevant section of the 1.0 docs: http://perl.apache.org/docs/1.0/guide/config.html#Apache_Configuration_in_Perl

Re: General mod_perl httpd configuration question

2005-04-07 Thread Perrin Harkins
On Thu, 2005-04-07 at 10:16 -0400, Stas Bekman wrote: > > Yes this is possible with both versions. I couldn't find any 2.0 > > specific docs on this, but here is the relevant section of the > > 1.0 docs: > > > > http://perl.apache.org/docs/1.0/guide/config.html#Apache_Configuration_in_Per

How to parse GET and POST methods in mod_perl 2.0

2005-04-07 Thread Durga Prasad Mohapatra
Hi, I have done all of my programs using apache1.3 and modperl 1.0. Now i want to port all of my modperl programs to mod_perl 2.0 and apache2 without using Apache::compat. I am facing problem in first step, for parsing methods i.e GET and POST. Previously in modperl 1.0 if it POST method i was u

RE: slightly OT - defining variables in httpd.conf for use in httpd.conf

2005-04-07 Thread Martin Moss
mod_define! Thats the one I can't believe I didn't find a link to in when searching google for 'dynamic variables httpd.conf' Ah well Thanks for that, regards Marty --- "Reed, Jonathan" <[EMAIL PROTECTED]> wrote: > We set them in Section 2 of the httpd.conf after the > DocumentRoo

Re: General mod_perl httpd configuration question

2005-04-07 Thread Stas Bekman
Frank Wiles wrote: On Wed, 6 Apr 2005 21:58:56 +0100 Simon Matthews <[EMAIL PROTECTED]> wrote: I have a number of applications built around mod_perl 1.0 and I am considering porting these over to 2.0. One of the questions that has come up here recently is can mod_perl modify the httpd configurat

RE: slightly OT - defining variables in httpd.conf for use in httpd.conf

2005-04-07 Thread Reed, Jonathan
We set them in Section 2 of the httpd.conf after the DocumentRoot like this: SetEnv ORACLE_HOME "/opt/home/oracle/product/8.1.7" -Jon Reed -Original Message- From: David Wright [mailto:[EMAIL PROTECTED] Sent: Thursday, April 07, 2005 10:08 AM To: modperl Subject: Re: slightly OT - defin

Re: slightly OT - defining variables in httpd.conf for use in httpd.conf

2005-04-07 Thread David Wright
I know I've seen this done before, but I'd like to define a variable at the top of my httpd.conf file, and then use it many times throughout the conf file... e.g. define Server='fred' DocumentRoot /usr/local/${server} I just can't find any info on this... Can anybopdy point me at the right place..

Re: General mod_perl httpd configuration question

2005-04-07 Thread Frank Wiles
On Wed, 6 Apr 2005 21:58:56 +0100 Simon Matthews <[EMAIL PROTECTED]> wrote: > > I have a number of applications built around mod_perl 1.0 and I am > considering porting these over to 2.0. > > One of the questions that has come up here recently is can mod_perl > modify the httpd configuration dy

slightly OT - defining variables in httpd.conf for use in httpd.conf

2005-04-07 Thread Martin Moss
All, I know I've seen this done before, but I'd like to define a variable at the top of my httpd.conf file, and then use it many times throughout the conf file... e.g. define Server='fred' DocumentRoot /usr/local/${server} I just can't find any info on this... Can anybopdy point me at the rig

Re: Authentication problem

2005-04-07 Thread Martin Moss
Hi, what's your MaxClients setting in your apache conf? It could just be that you aren't running enough apache child processes to serve the number of connections being made, Regards Marty --- "Levi E. Stanley" <[EMAIL PROTECTED]> wrote: > Hi, > > Been seeing problems with an Authenticate scr

Authentication problem

2005-04-07 Thread Levi E. Stanley
Hi, Been seeing problems with an Authenticate script lately. It was working fine up to the time I started getting slammed with traffic. I don't see any connection problems in the log file at all. But what I have noticed on the site is, I will click to go to download a file from the secure ar

Problem installing Apache::Status for mp1 from cpan

2005-04-07 Thread Mike Cardwell
Hi, I'm using mod_perl 1 on a Debian Sarge system. I just went to install Apache::Status with a: perl -MCPAN -e 'install Apache::Status' Here's what I got: = Reading Makefile.PL args from @ARGV mod_perl/1.29 installation detected