Unable to get PerlAuthenHandler to work in mp2

2008-08-20 Thread Brett Randall
Hey all I'm trying to get PerlAuthenHandler to work but when I go to a URL that I've set it up on, it asks for a username and password and then lets me in no matter what I type. My entry in Apache's .conf file is:

Re: Caching a hash - am I missing something?

2008-08-20 Thread André Warnier
W. Tyler Gee wrote: On Tue, Aug 19, 2008 at 5:35 PM, Chris Faust [EMAIL PROTECTED] wrote: Hi, This might be a little off topic, I hope it's OK to post. I'm not positive if mod_perl matters or not because it's a little confusing to me. I've taken over some pretty old code that I'm updating

RE: Caching a hash - am I missing something?

2008-08-20 Thread cfaust-dougot
Thanks Andre and Tyler. Believe it or not I never even thought of that until you guys pointed it out (that the hash would live for the the life of the apache child). I can be such a fool sometimes :) In this case I assume %cache is global - it only appers in that sub, there is no my %cache

Re: mod_perl2 STDOUT question

2008-08-20 Thread Jim Brandt
The system call forks a process and that process inherits the STDOUT from perl. So since your perl is the persistent interpreter in Apache, it would make sense that that's where most of the STDOUT messages will go. I'm not sure if there is a way to intercept the STDOUT of the forked process

Re: mod_perl2 STDOUT question

2008-08-20 Thread Perrin Harkins
On Wed, Aug 20, 2008 at 11:26 AM, Niels Larsen [EMAIL PROTECTED] wrote: I can put the command line to run in backticks and do print [EMAIL PROTECTED], and that too works, but would like to use system, Proc::SafeExec, etc. To fork and capture output without backticks, you have to do something

Re: Unable to get PerlAuthenHandler to work in mp2

2008-08-20 Thread Perrin Harkins
On Wed, Aug 20, 2008 at 3:03 AM, Brett Randall [EMAIL PROTECTED] wrote: I'm trying to get PerlAuthenHandler to work but when I go to a URL that I've set it up on, it asks for a username and password and then lets me in no matter what I type. Have you debugged this code to figure out which line

RE: mod_perl2 STDOUT question

2008-08-20 Thread Berg, Eric
I use IPC::Run3 quite a bit, and it's a good option for retrieving STDIN and STDOUT from a forked process. Be aware that with mod_perl2, subprocesses which are forked using system and backticks (IPC::Run3 uses system) DO NOT INHERIT THE ENVIRONMENT OF THE PROCESS FROM WHICH THEY ARE FORKED. You

Re: Unable to get PerlAuthenHandler to work in mp2

2008-08-20 Thread Brett Randall
Perrin == Perrin Harkins [EMAIL PROTECTED] writes: On Wed, Aug 20, 2008 at 3:03 AM, Brett Randall [EMAIL PROTECTED] wrote: I'm trying to get PerlAuthenHandler to work but when I go to a URL that I've set it up on, it asks for a username and password and then lets me in no matter what I type.

Re: Unable to get PerlAuthenHandler to work in mp2

2008-08-20 Thread Perrin Harkins
On Wed, Aug 20, 2008 at 5:42 PM, Brett Randall [EMAIL PROTECTED] wrote: I was wondering about debugging... I'll probably do the good old open a file, write to it after each line, and see where it stops writing No need to open a file. Anything you print to STDERR goes to apache's error_log, so

Re: Unable to get PerlAuthenHandler to work in mp2

2008-08-20 Thread John Drago
--- On Wed, 8/20/08, Brett Randall [EMAIL PROTECTED] wrote: From: Brett Randall [EMAIL PROTECTED] Subject: Re: Unable to get PerlAuthenHandler to work in mp2 To: Perrin Harkins [EMAIL PROTECTED] Cc: modperl@perl.apache.org Date: Wednesday, August 20, 2008, 3:42 PM Perrin == Perrin

Re: Unable to get PerlAuthenHandler to work in mp2

2008-08-20 Thread Brett Randall
Perrin == Perrin Harkins [EMAIL PROTECTED] writes: On Wed, Aug 20, 2008 at 5:42 PM, Brett Randall [EMAIL PROTECTED] wrote: I was wondering about debugging... I'll probably do the good old open a file, write to it after each line, and see where it stops writing No need to open a file.