modperl-check_if_you_are_really_running_under_modperl

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



To: Matt Sergeant <msergeant@startechgroup.co.uk>
From: Paul Makepeace <Paul.Makepeace@realprogrammers.com>
Subject: Re: [SOLUTION] Can't call Apache::Request->new()
Date: Fri, 14 Dec 2001 01:48:03 -0800

On Fri, Dec 14, 2001 at 09:20:06AM -0000, Matt Sergeant wrote:
> I think I know what's happening here. Your script is running as a CGI, not
> as mod_perl. Check:
> 
>   print "not " unless $ENV{MOD_PERL};
>   print "running under mod_perl\n";

Yup, this is it. Grrr, seems like my <Files /perl-bin/*.cgi> was
the problem.

<Directory /home/wwwrp/perl-bin>
	<Files *.cgi>
		SetHandler perl-script
		PerlHandler Apache::Registry
		Options +ExecCGI
		PerlSendHeader On
	</Files>
</Directory>

Thanks Matt & all!

D'oh,
Paul

[1] http://httpd.apache.org/docs/mod/core.html#files

===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu