I'm not very familiar with Apache on OSX, does it by default
run setuid and/or setgid? Also are you running with taint on?
There was an issue with Apache::SmallProf and Apache::DProf when
running under taint mode, and I'm curious if it's also a problem
for Apache::DB itself.
Yes I do have taint on. I thought it was wise for the production
server.
Should I just turn it off on my development server?
I don't think Apache on OSX runs setuid by default. I used Apache::DB
once before with my old Apache1.33/MP1 config and never had this
happen.
Could this have something to do with Toolkit Template and the includes
it uses, e.g. if they have the wrong group on the files, etc, or maybe
something
similar.
This is really hard for me to debug, because it errors out before the
debugger does anything more than print the first line of code:
Habitat::Apache2::handler(/Users/boysie/habitat/perl/modules/Habitat/
Apache2.pm:35):
35: my $r = shift;
error_log:
Insecure $ENV{PATH} while running setgid at
/Library/Perl/5.8.1/darwin-thread-multi-2level/Term/ReadKey.pm line
334.\nCompilation failed in require at
/Library/Perl/5.8.1/Term/ReadLine/Perl.pm line 63.\n
On the second request, the debugger behaves as it should...
Thanks,
Boysenberry
boysenberrys.com | habitatlife.com | selfgnosis.com
On Jul 3, 2006, at 10:00 AM, Frank Wiles wrote:
On Sun, 2 Jul 2006 11:25:27 -0500
Boysenberry Payne <[EMAIL PROTECTED]> wrote:
I little more info, the setgid error only happens on the first request
and only while debugging, as far as I can tell.
Thanks,
Boysenberry
boysenberrys.com | habitatlife.com | selfgnosis.com
On Jul 2, 2006, at 8:35 AM, Boysenberry Payne wrote:
That fixed the print issue but I'm still getting the following
error:
Insecure $ENV{PATH} while running setgid at
/Library/Perl/5.8.1/darwin-thread-multi-2level/Term/ReadKey.pm
line 334.\nCompilation failed in require at
/Library/Perl/5.8.1/Term/ReadLine/Perl.pm line 63.\n
How can I tell what is causing the error?
I get it before the first line of code is run in my handler, so
I'm guessing its
something during compile that causes it. Am I off base?
Is Apache2 or MP2 compiled improperly maybe?
Any suggestions?
Sorry was off having a rare "computer free weekend". :)
I'm not very familiar with Apache on OSX, does it by default
run setuid and/or setgid? Also are you running with taint on?
There was an issue with Apache::SmallProf and Apache::DProf when
running under taint mode, and I'm curious if it's also a problem
for Apache::DB itself.
---------------------------------
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
---------------------------------