[mp2] make fails under mp1.99_11, perl 5.8.2 src, httpd-2.0.48, rhat 2.4.20-20.9

2003-12-09 Thread Fred Moyer
Building mod_perl-1.99_11 under redhat 2.4.20-20.9, perl 5.8.2, and httpd-2.0.48 resulted in the following error: APR.xs:41:24: macro "extra_apr_init" passed 1 arguments, but takes just 0 APR.xs: In function `boot_APR': APR.xs:41: `extra_apr_init' undeclared (first use in this function) APR.xs:41:

Re: introducing new code with no perceived user delays?

2003-12-20 Thread Fred Moyer
On Thu, 2003-12-18 at 04:15, Stas Bekman wrote: > Rob Nagler wrote: > > Brian Hirt writes: > > > >>Once everything is running on the > >>new mod perl, i shut down the original mod perl application. There is > >>about 0.5 seconds of lag while the proxy reloads the rules. > > > > > > We use pro

Re: introducing new code with no perceived user delays?

2003-12-20 Thread Fred Moyer
On Sat, 2003-12-20 at 20:29, Randal L. Schwartz wrote: > >>>>> "Fred" == Fred Moyer <[EMAIL PROTECTED]> writes: > > Fred> < =head2 Blocking IP Addresses > Fred> < > Fred> < The following rewrite code blocks IP addresses: >

Re: [RELEASE CANDIDATE] please test mod_perl-1.99_13-dev.tar.gz

2004-03-05 Thread Fred Moyer
On Sat, 2004-03-06 at 03:18, Andrew Wyllie wrote: > All tests passed on FreeBSD-5.2, Perl-5.8.3, Apache-2.0.48 > All tests also passed on Linux 2.4.20-gentoo-r9, Perl-5.8.3, Apache-2.0.48! (threads not enabled) Thanks Stas! -- Report problems: http://perl.apache.org/bugs/ Mail list info: http

Mod_perl blog recommendations

2004-03-12 Thread Fred Moyer
Hello mod_perl list, I'm looking for simple mod_perl blog which uses the PostgreSQL database. Doesn't have to be fancy, basic requirements are posting news updates without using html tags and ease of use. Any ideas? Thanks, Fred -- Report problems: http://perl.apache.org/bugs/ Mail list info

Server fails to warm up during make test

2004-04-13 Thread Fred Moyer
Make test and 't/TEST -start' is timing out for me on Darwin 7.3.0, mp1_99_13, Perl 5.8.3, Apache 2.0.49. I've dug around on the list and the site but maybe I've missed something simple here. Advice on the next step in determining the problem or even the solution is much appreciated. ---

[mp2] [solved] Re: Server fails to warm up during make test

2004-04-13 Thread Fred Moyer
On Apr 13, 2004, at 12:40 PM, Fred Moyer wrote: Make test and 't/TEST -start' is timing out for me on Darwin 7.3.0, mp1_99_13, Perl 5.8.3, Apache 2.0.49. I've dug around on the list and the site but maybe I've missed something simple here. Advice on the next step in det

Re: Installing on Apache 2.0.49

2004-04-15 Thread Fred Moyer
I'm beginning my endeavor into the world of mod_perl and so-far not-so-good. I can't seem to get it to load. I have Apache 2.0.49 and mod_perl distribution 1.99_13 and it's all running on a Linux 9.0 box. I ran the command # perl Makefile.PL MP_APXS=/usr/sbin/apxs it ran fine Where did you

Re: Getting help for MasonX::Apache2Handler

2004-04-16 Thread Fred Moyer
2) Note that your libapreq2 had been installed under Apache2. This scheme is used to isolate Apache2-specific code from Apache1 code. On my machine I do not have Apache1 and everything is installed w/o the Apache2 directory. The 'use Apache2 ();' directive prepends direcories in the @INC array with

[mp2] Re: Getting help for MasonX::Apache2Handler

2004-04-16 Thread Fred Moyer
On Apr 16, 2004, at 10:35 AM, Fred Moyer wrote: 2) Note that your libapreq2 had been installed under Apache2. This scheme is used to isolate Apache2-specific code from Apache1 code. On my machine I do not have Apache1 and everything is installed w/o the Apache2 directory. The 'use Ap

Re: [mp2] [solved] Re: Getting help for MasonX::Apache2Handler

2004-04-19 Thread Fred Moyer
On Apr 17, 2004, at 1:03 AM, Stas Bekman wrote: Beau E. Cox wrote: [...] Linux version 2.6.5 (Beau E. Cox on @cathy.beaucox.com) (gcc version 3.3.3) #1 Mon Apr 5 22:15:29 HST 2004 I did this: $ export RTLD_NOW=1 $ perl Makefile.PL [...] Writing Makefile for MasonX::Apache2Handler $ set|grep RTLD RT

Re: [mp2] $r->auth_name

2004-05-03 Thread Fred Moyer
Is there an mp2 implementation of $r->auth_name? I'm working with Apache::AuthCookie in a native mp2 environment and am getting an error message of: I believe this module has been ported to mp2 already. you might want to check the archives so you don't end up doing more work than you need. I fol

[mp2] $r->auth_name

2004-05-03 Thread Fred Moyer
Greetings, Is there an mp2 implementation of $r->auth_name? I'm working with Apache::AuthCookie in a native mp2 environment and am getting an error message of: Can't locate class method 'Apache::RequestRec::auth_name' via package 'Apache::ReqestRec' at Apache/AuthCookie.pm line 18 I've found

Re: Need a little help with this one

2004-07-10 Thread Fred Moyer
> I have a file /var/www/cgi-bin/tryit.cgi: > #! /usr/local/bin/perl > # tryit.pl > > use Acrobat::FDF; ... > $currentField=$inFDF->NextFieldName(""); ... > [Sat Jul 10 20:04:42 2004] [error] Can't call method "NextFieldName" on an > undefined value at /usr/local/apache/htdocs/online_testing/perl/t

Re: accessing loaded modules from other modules

2004-07-13 Thread Fred Moyer
> just a quick one:How can I access loaded modules from other modules using > mod_perl, i.e. say that I am running module contacts.pm within modperl, > and I want from ContactPersons.pm access the contacts module, given that > the two modules/packages are loaded separately. > any advice appreciated

[mp2] $r->method and $r->method_number set methods deprecated?

2004-08-08 Thread Fred Moyer
Greetings, I use a CPAN module in my code that uses $r->method and $r->method_number to set the request method and method numbers. When I upgraded to 1.99_15-dev the module can no longer set the method and number, only get it (1). Are the set methods are deprecated, or are they in the works stil

Re: [mp2] $r->method and $r->method_number set methods deprecated?

2004-08-08 Thread Fred Moyer
> Thanks for the spot Fred. > > The issue was is that we had almost all accessors settable, as I worked through those I've made of them read-only, which wasn't always right. Please try the current cvs or the patch below [1]. Current cvs did the trick, thanks. > Now if you could go through the mp2

Re: Error on Apache::Request install [mp2]

2004-08-21 Thread Fred Moyer
> I have Apache 2 and Mod Perl 2 already install though someone else installed > them for me. > Any idea what's up and how I can located this apxs stuff? They didn't install httpd-devel which contains apxs, hence it is not being found by libapreq2. Install the httpd-devel rpm via up2date or yum.

[mp2] 1.99_16 test failure

2004-08-25 Thread Fred Moyer
Greetings, I encountered a test failure for t/lookup_uri.t on 1.99_16 under perl 5.8.5 and httpd 2.0.50. Same test failure occurs under cvs head. I dug into the code but don't understand enough about it to provide a patch right now. -8<-- Start Bug Report 8<

Re: [mp2] 1.99_16 test failure

2004-08-25 Thread Fred Moyer
>> During 'make test' >> >> [Mon Aug 23 20:07:59 2004] [error] [client 127.0.0.1] Use of >> uninitialized >> value in string eq at >> /home/fred/dev/cvs/modperl-2.0/t/response/TestAPI/lookup_uri.pm line 30. > > Fred, please read: > http://perl.apache.org/docs/2.0/user/help/help.html#_C_make_test___

Re: [mp2] 1.99_16 problem

2004-09-01 Thread Fred Moyer
> Can't locate object method "server_hostname" via package > "Apache::ServerRec" at > ... 300.\n\t..., 'Apache::RequestRec=SCALAR(0x881968)') called > at -e line 0\n\teval {...} called at -e line 0\n > > The line concerned is: > > my $host_name = $r->server->server_hostname; http://perl.a

Re: [mp2] 1.99_16 problem

2004-09-01 Thread Fred Moyer
>> Can't locate object method "server_hostname" via package >> "Apache::ServerRec" at >> ... 300.\n\t..., 'Apache::RequestRec=SCALAR(0x881968)') called >> at -e line 0\n\teval {...} called at -e line 0\n >> >> The line concerned is: >> >> my $host_name = $r->server->server_hostname; > > h

Re: [mp2] Compatibility issue: Apache::ParseFormData vs. 1.99_15

2004-09-02 Thread Fred Moyer
> - removed: > > remaining - this method is not needed if the deprecated > $r->client_block methods aren't used, (use $r->read > $r->instead) > > This violates the compatibility with Apache::ParseFormData, which becomes > unusable. Currently this module is the on

Re: [mp2] Compatibility issue: Apache::ParseFormData vs. 1.99_15

2004-09-03 Thread Fred Moyer
> Fred, thanks for assistance, but your patch does not touch line 144 in > ParseFormData.pm: Thanks for the spot. My point though was that if you're not comfortable with using the current libapreq release because it's developer release, then making the changes to Apache::ParseFormData for compata

Re: Apache-AuthenNTLM-2.07 and ModPerl 1.99_16

2004-09-20 Thread Fred Moyer
> I really have no idea about Apache-AuthenNTLM but to make it working > again you could apply the patch below and rebuilt your mod-perl. > As far > as I can tell from the last mail from Stas it's going to be > read/writeable in future if one volunteers to write tests :-). I originally suggested

Re: Shopping Cart Software

2004-11-20 Thread Fred Moyer
> Use clickcartpro its Perl, its easy , and it rocks! > Interchange is also worth taking a look at. http://www.icdevgroup.org/ -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-e

Re: Shopping Cart Software

2004-11-20 Thread Fred Moyer
Robert Ferney wrote: The question for me is, do they work under Apache2 or are they only working for Apache 1.3 There's a how-to here for installing Interchange with PostgreSQL and mod_perl 2. I haven't used it but it looks thorough :) http://www.w3trader.com/Interch/Interchange-PostgreSQL.ht

Re: mod_perl and 64-bit linux

2004-12-01 Thread Fred Moyer
> I am considering upgrading to a 64-bit Opteron-based machine running RH > linux. Using perl 5.8, apache 2, mod_perl. Has anyone run into any > problems running their mod_perl applications on a 64-bit box with a > 64-bit linux OS? I ran a mission critical web-app using Apache2/mod_perl2, and an s

Re: DBI memory usage

2005-01-18 Thread Fred Moyer
>> > It looks like $r->child_terminate does what I need. In the case of >> > Postgresql it eats the memory when you execute the query, regardless >> > of whether you actually fetch any results. >> >> That can be worked around, however. By using a cursor, you can specify >> exactly how much data yo

Re: DBI memory usage

2005-01-18 Thread Fred Moyer
>> > It looks like $r->child_terminate does what I need. In the case of >> > Postgresql it eats the memory when you execute the query, regardless >> > of whether you actually fetch any results. >> >> That can be worked around, however. By using a cursor, you can specify >> exactly how much data yo

Re: How do I catch errors with Apache::Upload

2005-04-02 Thread Fred Moyer
jonathan vanasco wrote: > > Apache::Upload seems to be working fine -- as long as I upload something > > If i upload nothing, i get all sorts of errors. i assumed I would get > them, as this problem came about while I was trying to work in routines > for handling data of the wrong type. I just

Re: [ANNOUNCE] mod_perl 2.0.0-RC5

2005-04-14 Thread Fred Moyer
Tom Schindl wrote: > Why doesn't it install if mp1 is installed? Now that we have a new > namespace that should not be a problem? What problem did you encounter? Can you post a sample of your attempted installation, or better yet a bug report as described here: http://perl.apache.org/docs/2.0/us

Re: RC5 really broke some stuff

2005-04-22 Thread Fred Moyer
>>If you're going to run beta or pre-release code - you've got to accept the >>risks that go with that. > > I think we all knew this. But rc4 was about the last one before formal > release, > and Stas promised since rc2 or something that there would be no API change > (I'm > not blaming him on t

Re: mod_perl2: cannot load Apache::AuthCookie for Apache 2.0

2005-06-10 Thread Fred Moyer
> PerlModule Apache2::compat > PerlModule mod_perl2 > PerlModule Apache::AuthCookie Use this line instead for use with mod_perl2 - 'PerlModule Apache2::AuthCookie' > > The first error that I got was that it could not find the Apache::Util > module. The only place I could find this was in the

Re: Help (Desperate) - Install Bundle::Apache2 catastrophic

2005-06-12 Thread Fred Moyer
>>But, since CGI.pm is throwing these errors, I'd say >>it's because you >>haven't upgraded it. What version of CGI.pm are you >>running? It needs to >>be at version 3.10 for complete compatibility with >>mod_perl2. > > CGI.pm is 3.10. CGI is also part of the > Bundle::Apache2, so it may have been

Re: Lost my

2005-07-02 Thread Fred Moyer
Thomas Hilbig wrote: > Since updating to mp2.0.0 and httpd 2.0.54, my CGI > scripts no longer include the heading at the top: > This is something usually added by my PerlResponseHandler. If I'm using XML::LibXML to generate the response, the document type declaration is added automatically. Ar

Re: [mp2] libapreq2 error

2005-07-19 Thread Fred Moyer
Garrison Hoffman wrote: > When trying to use Apache2::Cookie I get: > > /usr/sbin/apache2: symbol lookup error: > /usr/lib/perl5/site_perl/5.8.6/i686-linux/auto/APR/Request/Apache2/Apache2.so: > undefined symbol: apreq_handle_apache2 > > Is this a problem with libapreq2-2.05-dev or with my mod_pe

Re: mod_perl2 and PHP

2005-08-06 Thread Fred Moyer
Thomas Klausner wrote: > Is it possible and advisable to write the complex part of an application > (the Controller, if you like) in mod_perl2 and use PHP as a frontend (or > View) ? Here's an excellent thread on how to do just that if you are using mod_perl 2: http://marc.theaimsgroup.com/?l=apa

Re: survey

2005-08-26 Thread Fred Moyer
Frank Wiles wrote: > We tried last year to get a mod_perl advocacy movement going, but > not to many people were interested in helping with it. There is a mailing list just for the advocacy movement here: http://perl.apache.org/maillist/advocacy.html The last post was in May, right before

Re: API to mime.types?

2005-09-23 Thread Fred Moyer
Through my MP2 handler, I need to be able to set Content-Type based on the extension of any file that I'm reading from disk and then writing to the client. I'd like to somehow (programmatically) map from file extension to MIME type, and it seems like Apache's mime.types file is a good place to do

Re: API to mime.types?

2005-09-23 Thread Fred Moyer
Geoffrey Young wrote: what it boils down to is what type of mod_perl application you have. if you can let apache figure out the content-type itself (via $r->filename) then that's the best approach. if you're reading a "file" from a database or something then you'll need to use the response p

Advocacy and Talking Points

2005-09-28 Thread Fred Moyer
Hi, Yesterday I was asked about the viability of mod_perl ( and more generally Perl web based solutions ) in scaling web based applications. I have my own personal experiences with scaling mod_perl, and am well versed with the best practices, case studies, and methodologies out there in scal

Re: Looking for good MP2 reference material

2005-10-01 Thread Fred Moyer
On Sat, 1 Oct 2005 10:50 am, Boysenberry Payne wrote: Anyone know of some good apache2 mp2 related reading material that I could purchase for more up to date info than the stuff I'm getting from my old O' Reilly books? http://perl.apache.org/docs/2.0/index.html is free. Thanks, Boysenberry

Re: Error:- failed to resolve handler `Apache::PerlRun'

2005-10-17 Thread Fred Moyer
[EMAIL PROTECTED] wrote: Dear Friends, I am encountering a strange problem with my mod perl 2 Can you specify the exact version you're using? (i.e. 2.0.1 ) PerlHandler Apache::PerlRun and it gives me the following error as soon as I start the server:- [Mon Oct 17 12:20:54 2005]

Re: Can't install libapreq2 on Fedora 2

2005-11-04 Thread Fred Moyer
On Fri, 4 Nov 2005 9:33 am, Victor Dias wrote: I did the same install on Fedora 4 with mod_perl-2.0.1-1.fc4. Any help? Try building 2.0.2 from source. The redhat / fedora packages have never been completely error free in my experience. I've built 2.0.2 with libapreq 2.0.6-dev several tim

Re: Improving server performance with mod_perl 1.29 and DBI

2005-11-14 Thread Fred Moyer
On Mon, 14 Nov 2005, Philip M. Gollucci wrote: Leo Lapworth wrote: Put all your virtual hosts in one database, just start the table names differently so instead of .tablename have application_db._tablename This way apache only have to connect to one database. There may be all sorts of r

Re: go crazy with me

2005-12-21 Thread Fred Moyer
Randal L. Schwartz wrote: "Andreas" == Andreas J Koenig <[EMAIL PROTECTED]> writes: Andreas> I'd also like to hear what people are doing when the apache model has Andreas> scaling problems. We have one problematic project here: we're a Andreas> gateway and must server a high number of very slow

Re: AuthCookie/modperl2 problems

2005-12-27 Thread Fred Moyer
On Tue, 27 Dec 2005 4:59 pm, Geoffrey Ferrari wrote: All of a sudden, I've started getting strange error messages when I use Apache2::AuthCookie under modperl2. "StackedHandlers" is not exported by the mod_perl2 module\n "MethodHandlers" is not exported by the mod_perl2 module\n "Authen" is

Re: read query params

2006-02-09 Thread Fred Moyer
M J wrote: I’m very disappointed regarding the mod_perl 2 documentation and changes that have been made. I’m searching for several hours already how can I read the query params using only mod_perl2 API. I had problem installing libapreq2-2.06-dev and I’m tired to debug that

Re: FW: MP2 PerlTransHandler and VirtualHosts

2006-02-15 Thread Fred Moyer
Frank Wiles wrote: On Wed, 15 Feb 2006 12:46:37 +0100 "Peter, Attila" <[EMAIL PROTECTED]> wrote: -Original Message- From: Peter, Attila Sent: Mittwoch, 15. Februar 2006 12:46 To: 'Frank Wiles' Subject: RE: MP2 PerlTransHandler and VirtualHosts Frank, I tried earlier default-handler

Re: FW: MP2 PerlTransHandler and VirtualHosts

2006-02-15 Thread Fred Moyer
Very odd. Anyone know if 'default-handler' isn't in MP2? I can't say that it isn't, but maybe this will work: PerlTransHandler Apache2::Const::OK Scratch that response, it will keep the TransHandler from running which is not what you want. Use DECLINED per Geoff's response.

Re: FW: MP2 PerlTransHandler and VirtualHosts

2006-02-15 Thread Fred Moyer
PerlTransHandler Apache2::Const::OK I didn't take the time to read the entire thread, but based on the suggestion of using default-handler I figured the goal was something like this PerlTransHandler My::Foo # unset the above trans handler if that's the case then you want to return DECL

Re: 2.02 make fails: cannot find -lperl

2006-02-18 Thread Fred Moyer
Tom Setka wrote: I am running Knoppix 3.7 from a CD, so can't modify anything in /lib, /usr/lib, etc. Apache 2.0.55 has been installed on my PC's hard drive and is correctly serving web pages. There is /usr/lib/libperl.so.5.8, which is a link to libperl.so.5.8.4 . Is there a way to tweak t

Re: Modperl2 question

2006-03-09 Thread Fred Moyer
[EMAIL PROTECTED] wrote: Hi All! I'm planing to port a web application for mod_perl1 ro mod_perl2. I've carefully read to porting pages related to that (http://perl.apache.org/docs/2.0/user/porting/), but unfortunatelly, I haven't found solutions to my simple problems. 1. How can I read a coo

Re: Re: Modperl2 question

2006-03-10 Thread Fred Moyer
hCookie which is a fully functional module to do exactly this. > > Any idea? > Younes > > Message d'origine >>Date: Thu, 09 Mar 2006 01:45:40 -0800 >>De: Fred Moyer <[EMAIL PROTECTED]> >>A: [EMAIL PROTECTED] >>Copie à: modperl@perl.apache.org >>

Re: Re: Re: Modperl2 question

2006-03-10 Thread Fred Moyer
2006 09:04:58 -0800 (PST) >>Sujet: Re: Re: Modperl2 question >>De: "Fred Moyer" <[EMAIL PROTECTED]> >>A: [EMAIL PROTECTED] >>Copie à: modperl@perl.apache.org >> >>[please cc the modperl@perl.apache.org list on all list response thre

Re: Modperl2 + PerlAccessHandler + Sending Cookie

2006-03-11 Thread Fred Moyer
yperl wrote: unfortunately no. I've already tried this. Sometimes bad cookies leave no crumbs and are especially hard to track down. I'm guessing this has to do with the specifics of your cookie values - can you show us the exact code you used to create it? I was able to successfully bake

Re: Modperl2 question

2006-03-12 Thread Fred Moyer
On Mon, 13 Mar 2006, Foo Ji-Haw wrote: There's a few recipes here: http://perl.apache.org/docs/2.0/user/coding/cooking.html#Sending_Cookies_Using_libapreq2 Would using t Apache2::Cookie work just as well? Apache2::Cookie is one of the glue modules for libapreq2. You have to install li

Re: Modperl2 + PerlAccessHandler + Sending Cookie

2006-03-12 Thread Fred Moyer
On Mon, 13 Mar 2006, Foo Ji-Haw wrote: Wow, a little tangent to the topic here: I didn't know that you can do this PerlResponseHandler Apache2::Const::OK Is that 'legal'? It's interesting to know, but I wouldn't know of a practical use for this trick. Specifying a return code for a handler pha

Re: Modperl2 + PerlAccessHandler + Sending Cookie

2006-03-12 Thread Fred Moyer
On Mon, 13 Mar 2006, Foo Ji-Haw wrote: Hello Fred, Ok, the 12 layers of Apache is as cool as the OSI layers. Let's say that in my PerlAuthzHandler I verified the user via a cookie (given to the client You will want to use a PerlAuthenHandler to authenticate the user. during login). It sound

Re: APR::* + PerlResponseHandler + Reading Cookie

2006-03-14 Thread Fred Moyer
As usual, I'm facing another problem. I'm playing with APR::* module like you suggested me (Fred, ) in your first email. I suggested a few different methods, this this just the one I use. As Perrin pointed out in a different thread a few days ago, the performance gain of this module is overs

Re: external redirect after internal redirect not working

2006-03-22 Thread Fred Moyer
Michael Greenish wrote: > use strict; [..] # redirect $r->headers_out->set( Location => $redirectURL ); $r->status( REDIRECT ); > return REDIRECT; I see a few things here that catch my eye but what stands out the most is the use of the same return code for the browser and apache. why are you

Re: retrieving the anchor tags in internal redirects

2006-04-21 Thread Fred Moyer
Michael Peters wrote: Frank Wiles wrote: [...] Which works fine except that the anchor info (#123) is lost. Is there anyway to get this from the original request's URL? I think you're looking for $r->prev->unparsed_uri Thanks, but I guess I should have mentioned that I'm using mod_perl

Re: retrieving the anchor tags in internal redirects

2006-04-21 Thread Fred Moyer
On Fri, 21 Apr 2006 9:31 am, Fred Moyer wrote: Michael Peters wrote: Frank Wiles wrote: [...] Which works fine except that the anchor info (#123) is lost. Is there anyway to get this from the original request's URL? The 2.0 docs seem to indicate that this piece is called the 'fra

Apache2::CmdParms usage during server startup

2006-06-09 Thread Fred Moyer
Greetings, I'm trying use custom directives during a BEGIN block of one of my modules so that I can use the directive as a configuration parameter for a singleton in the handler package. I use Apache2::ServerUtil->server to get the server object during the BEGIN block and run $cfg = Apache2:

Re: Apache2::CmdParms usage during server startup

2006-06-09 Thread Fred Moyer
Fred Moyer wrote: Here's the code I'm using. I'm guessing that get_config() may not return what I'm looking for during startup since it functions properly at runtime. Any ideas? $pkg_global will be a template object, which is why I want to construct it during startu

Re: Apache2::CmdParms usage during server startup

2006-07-04 Thread Fred Moyer
Geoffrey Young wrote: Fred Moyer wrote: Here's the code I'm using. I'm guessing that get_config() may not return what I'm looking for during startup since it functions properly at runtime. Any ideas? $pkg_global will be a template object, which is why I want to constru

Re: Apache2::CmdParms usage during server startup

2006-07-04 Thread Fred Moyer
Philip M. Gollucci wrote: Fred Moyer wrote: Fred Moyer wrote: Aha - simple solution is use the first instance of get_config() in the handler and cache it. Sorry for the noise - got caught up in 'why isnt it working when maybe it should'. Still a bit curious why it doesn

Re: How to get current DocumentRoot for VirtualHost in Config Handler

2006-07-12 Thread Fred Moyer
Christian Wetzig wrote: Hi, i have an config handler like in http://perl.apache.org/docs/2.0/user/config/custom.html#Creating_and_Using_Custom_Configuration_Directives is it somehow possible to lookup the current DocumentRoot from within a directive handler like the following sub MyParameter

Re: Apache::Resource not killing children, hanging

2006-07-22 Thread Fred Moyer
On Sun, 23 Jul 2006, Fred Tyler wrote: I'm having a serious problem with Apache::Resource not killing children and ending up with all of the children in a hung state at the memory limit (Linux 2.6, mod_perl 1.29, Apache 1.33). For what it's worth you might want to take a look at Apache::SizeLi

Re: mod_perl2 installed, but scripts still slow

2006-08-20 Thread Fred Moyer
Dietmar Thal wrote: > Hey, > > I have recently upgraded from mod perl 1.999 to 2.0.2 > on Apache 2.0.54 (Debian). > Some more hints: > After installing, when i tried to restart Apache, > error.log said, it cant find Apache2.pm in @INC, > so i removed the line 'PerlModule Apache2' from my conf. > O

Re: mod_perl2 installed, but scripts still slow

2006-08-20 Thread Fred Moyer
Dietmar Thal wrote: > Hey, > > I have recently upgraded from mod perl 1.999 to 2.0.2 > on Apache 2.0.54 (Debian). > Some more hints: > After installing, when i tried to restart Apache, > error.log said, it cant find Apache2.pm in @INC, > so i removed the line 'PerlModule Apache2' from my conf. > O

Re: PerlLogHandler and DB_File

2006-08-20 Thread Fred Moyer
hara wrote: > Hi > > While modifying DumpHeaders.pm with mod_perl-1.29 + apache-1.3.34, it shows > following error messages. > > [Sat Aug 19 16:11:36 2006] [error] Undefined subroutine > &Apache::DumpHeaders::handler called.\n > [Sat Aug 19 16:11:36 2006] [error] Undefined subroutine > &Apache::D

Re: PerlConfig

2006-08-21 Thread Fred Moyer
I have been struggling with the $PerlConfig, and @PerlConfig variables, only to find out that in the current release of Mod_Perl they are broken. In SVN this has aparently allready been corrected though. So: - When will we get 2.0.3? Probably before apachecon is my guess. - What do I do in th

Re: [Fwd: svn commit: r437104 - in /perl/Apache-SizeLimit/trunk: lib/Apache2/SizeLimit.pm t/response/TestApache2/check_n_requests2.pm t/response/TestApache2/deprecated.pm]

2006-08-27 Thread Fred Moyer
On Sat, 26 Aug 2006, Philip M. Gollucci wrote: Anyone wanting to take mp1 and mp2 variants for a test spin -- very appreciated. So far the tests are passing for me except for the ones which require A::T 1.29 - 1.28 was the latest last time I looked no? Thanks. Original Message

Re: [RELEASE CANDIDATE]: mod_perl-2.0.3 RC1

2006-09-07 Thread Fred Moyer
Philip M. Gollucci wrote: > > http://people.apache.org/~pgollucci/mp2/mod_perl-2.0.3-rc1.tar.gz > > and report back successes or failures. When reporting failures, please see Configuring Apache/2.0.59 mod_perl/2.0.3-rc1 Perl/v5.8.6 ... All tests successful, 3 tests skipped. Linux 2.6.15

Re: [RELEASE CANDIDATE]: libapreq2 2.09-RC1

2006-09-07 Thread Fred Moyer
Philip M. Gollucci wrote: > Please download, test, and report back on the following > candidate tarball: > > http://people.apache.org/~pgollucci/apreq2/libapreq2-2.09-rc1.tar.gz mod_perl 2.0.3rc1/httpd 2.0.59/perl 5.8.6/ linux 2.6.15 All tests successful, 5 tests skipped. (tested with and withou

Re: [RELEASE CANDIDATE]: Apache-Test-1.29-RC1

2006-09-08 Thread Fred Moyer
Philip M. Gollucci wrote: > A release candidate for Apache-Test 1.29-RC1 is now available. > > http://people.apache.org/~pgollucci/at/Apache-Test-1.29-rc1.tar.gz > > Please take the time to exercise the candidate through all your existing > applications that use Apache-Test and report back succes

Re: [RELEASE CANDIDATE]: Apache-Test-1.29-RC1

2006-09-08 Thread Fred Moyer
Philip M. Gollucci wrote: > A release candidate for Apache-Test 1.29-RC1 is now available. > > http://people.apache.org/~pgollucci/at/Apache-Test-1.29-rc1.tar.gz > > Please take the time to exercise the candidate through all your existing > applications that use Apache-Test and report back succes

Re: mp2: push_handlers / set_handlers vs. Perl*Handler

2006-09-12 Thread Fred Moyer
Jeremy Nixon wrote: > I'm having some frustration with managing Perl handler registrations. > > It seems that, if I register a handler from within my code, either using > push_handlers or by grabbing the list with get_handlers, modifying it, > and then doing set_handlers -- any other handlers for

Re: mp2: push_handlers / set_handlers vs. Perl*Handler

2006-09-13 Thread Fred Moyer
Jeremy Nixon wrote: > Fred Moyer <[EMAIL PROTECTED]> wrote: > >> But... once I changed my return codes to allow the other handlers to >> return DECLINED instead of OK in a couple of particular situations, >> push_handlers() behaved as I would have expected it

Re: Retrieve server environment vars before response handler.

2006-09-20 Thread Fred Moyer
stevethames wrote: Can anyone tell me how to retrieve the environment variables set by the Apache server in the PerlAuthenHandler or the PerlHeaderParserHandler? Basically any handler that is called before the PerlResponseHandler. I am using virtual hosts and want to set a variable for each o

Re: Retrieve server environment vars before response handler.

2006-09-20 Thread Fred Moyer
e available in the authentication handler. Any other ideas? If you can post some relevant snippets from your conf file, shell env setup, and handler, we might be able to spot something that's causing the problem. If it really is a problem with PerlPassEnv I'd like to get it into a reproducib

Re: Location directive in httpd.conf

2006-09-21 Thread Fred Moyer
On Thu, 21 Sep 2006 1:51 pm, sajid khan wrote: I asked the below question in apache user group as well, but with no answers We have 2 location directives, one for all the requests ( ... ) and one for specific url . We declare some variables using PerlSetVar inside those and read from the pe

Re: Virtual Hosts in "Perl" sections.

2006-09-24 Thread Fred Moyer
Krist van Besien wrote: Hello, The folllowing piece: 1 2 $VirtualHost{"0.0.0.0"} = { 3 DocumentRoot => "/home/foo/webservers/wiki.foo.net/htdocs", 4 ServerName => "wiki.foo.net", 5 }; 6 7 8 Creates a virtual host that is equivalent to the f

Re: Reading custom configuration parameters

2006-10-02 Thread Fred Moyer
Erik Norgaard wrote: > Erik Norgaard wrote: > >> I have successfully created a module that declares some configuration >> parameters which should be available to the handler: dbDriver, dbHost, >> dbName, dbUser and dbPassword. Or so I think, I followed this guide: >> >> http://perl.apache.org/do

Re: [mp2] Does not build on Scientific Linux 4.3

2006-10-10 Thread Fred Moyer
Peter von Weisz wrote: Hi all, Sorry for posting such a long compiler output. This is on Scientific Linux (SL) 4.3 (a RedHat EL-based dist) with Apache 2.0.52 installed as an RPM. SL supplies a RPM called mod_perl-1.99_16-4 (which is installed), but that is not enough for the Apache::AuthCookie

Re: Apache2::Reload warnings

2006-10-13 Thread Fred Moyer
On Fri, 13 Oct 2006 1:48 pm, Ted wrote: Hi, I get the following warnings when using Apache2::Reload. How can I get rid of them? Constant subroutine MyApp::MY_CONSTANT redefined at /usr/local/lib/perl5/site_perl/5.8.6/sun4-solaris/ModPerl/Util.pm line 69. Prototype mismatch: sub MyApp::MY_CONS

Re: child pid 28464 exit signal Segmentation fault (11)

2006-10-18 Thread Fred Moyer
Cyril SCETBON wrote: Cyril SCETBON wrote: Hi people, I get this error message int error.log when I try to access a perl script which exists or not. I've turned on trace messages in mod_perl and here is my error.log : [Sun Oct 08 17:19:39 2006] [notice] Apache/2.0.55 (Ubuntu) mod_ssl/2.0.55

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Fred Moyer
On Wed, 18 Oct 2006, Michael Greenish wrote: I also had to make the follow addition to my config file: PerlInitHandler Apache2::Reload PerlSetVar ReloadAll Off I never figured out how to check if it was actually picking up changes on its own. For now, I have reverted to not us

Re: apache2::reload causing 500 errors on return statement

2006-10-18 Thread Fred Moyer
I use it every day and it works great for me. If you could post the relevant section of httpd.conf where you configure Apache2::Reload ( in addition to the lines above), I'm sure we could help you out. I don't have any other entries in my httpd.conf file for Apache2::Reload. As I read the doc

[Fwd: CPAN Upload: P/PH/PHRED/Apache-Dispatch-0.10_01.tar.gz]

2006-10-23 Thread Fred Moyer
Request entered by: PHRED (Fred Moyer) Request entered on: Tue, 24 Oct 2006 06:23:11 GMT Request completed: Tue, 24 Oct 2006 06:23:36 GMT Thanks, -- paused, v782 --- End Message ---

Re: MapToStorageHandler and custom config

2006-10-27 Thread Fred Moyer
On Fri, 27 Oct 2006, John ORourke wrote: Hi folks, I've implemented some custom config directives, works fine. However, when my MapToStorage handler asks for the per_dir_config hash, it seems to be getting the server config - all other handlers get the per-dir no problem. My guess is that

Re: [mp2] PAR in production?

2006-11-09 Thread Fred Moyer
On Wed, 8 Nov 2006, Perrin Harkins wrote: On Mon, 2006-11-06 at 12:28 -0600, Frank Wiles wrote: What I have always done is package my applications as if they are CPAN modules using ExtUtils::MakeMaker or in more recent days Module::Build. Never had a problem with it, but it probably

Re: Weak references, problem with apache2/mod_perl2

2006-11-10 Thread Fred Moyer
On Fri, 10 Nov 2006, Perrin Harkins wrote: On Fri, 2006-11-10 at 14:24 +0100, Michael Frankl wrote: I cleaned up the perl-installation. There where directories under /usr/lib/perl5 from previous perl installations. I deleted them all. I deleted the Scalar::Util that is not from main distributio

Re: Is there also a way to count the bytes received?

2006-11-14 Thread Fred Moyer
Hans de Groot wrote: Hi, It's me again with more impossible questions. I am logging the bytes sent to a database, I would also like to log the bytes received is there any small chance this can be done? You could probably do this with an input filter if I am understanding your question correc

Re: Error messages go to server ErrorLog not to VirtualHost ErrorLog

2006-11-16 Thread Fred Moyer
Hermida, Leandro wrote: Hello, I have a problem related to this with CGI scripts which I am porting to mod_perl 2 and presently running under ModPerl::Registry. I have a VirtualHost were I have enabled mod_perl and ModPerl::Registry as the handler. I have set the ErrorLog directive in this Vir

Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.91 RC1

2006-12-06 Thread Fred Moyer
Philip M. Gollucci wrote: A release candidate for Apache-SizeLimit 0.91-RC1 is now available. http://people.apache.org/~pgollucci/asl/Apache-SizeLimit-0.91-rc1.tar.gz Please download, test, and report back. I broke it! :) [1], httpd 2.2.3, mp2.0.3, perl 5.8.8, darwin Here's my suggested pat

Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.91 RC1

2006-12-06 Thread Fred Moyer
On Wed, 6 Dec 2006 2:08 am, Philip M. Gollucci wrote: Fred Moyer wrote: Philip M. Gollucci wrote: A release candidate for Apache-SizeLimit 0.91-RC1 is now available. http://people.apache.org/~pgollucci/asl/Apache-SizeLimit-0.91-rc1.tar.gz Here's my suggested patch to handle this.

Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.91 RC1

2006-12-06 Thread Fred Moyer
Philip M. Gollucci wrote: Fred Moyer wrote: Philip M. Gollucci wrote: A release candidate for Apache-SizeLimit 0.91-RC1 is now available. http://people.apache.org/~pgollucci/asl/Apache-SizeLimit-0.91-rc1.tar.gz Here's my suggested patch to handle this. Only problem is it doesn't

  1   2   3   4   5   6   >