modperl_shutting_off_silly_CGI_pm_offline_mode_messages

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



To: Stef Telford <stef@Chronozon.dyndns.org>
From: Stas Bekman <stas@stason.org>
Subject: Re: Silly Question Not in the FAQ
Date: Thu, 8 Feb 2001 15:04:01 +0800 (SGT)

On Thu, 8 Feb 2001, Stef Telford wrote:

> Hello,
> 	Me again (sorry about this) and this is probably a silly question
> but, each of my Apache children load in CGI.pm at startup time (via the
> startup.pl method). The only problem is that the apache-error log grows
> due to the CGI.pm startup message
>
>      (offline mode: enter name=value pairs on standard input).
>
> 	Now, how do i get these messages removed or not going to my
> logfile ? I have the latest CGI.pm from CPAN,along with perl 5.005 patch
> 3,
> mod_perl 1.24 and Apache 1.3.17 on a FreeBSD box.
>
> 	Its not 'mission critical' (obviously) but its jst one of those little
> 'niggling' things that i would like to know how to 'scratch'. Thank you
> as
> always.

it shouldn't happen (probably a bug in CGI.pm), but a quick workaround
will do:

$CGI::NO_DEBUG = 1;

===

To: modperl@apache.org
From: "Stef Telford" <stef@Chronozon.dyndns.org>
Subject: Silly Question about CGI and mod_perl - The Revenge
Date: Fri, 9 Feb 2001 16:28:49 -0500 (EST)

Hello,
	Me again (sorry), i did as was suggested to get rid of the
CGI.pm debug messages in the Apache Server. I changed NO_DEBUG
to 1 and the 

(offline mode: enter name=value pairs on standard input)

	all went away. Thats the good news. The strange news is that
now, however, it doesnt seem to recieve the post data. I am using
CGI::param to get the input from the previously posted form, which
is the typical <FORM action="/bleh/bleh.pl">. All .pl files are set
to be executed by mod_perl (not the safest thing i know but its a
development server more than production). 

There is nothing going on. I downgraded to CGI.pm 2.46 and with NO_DEBUG
on, it works, it gets the data posted to the other cgi. 
With 2.752 in any state, no show.

	I would like to think I know how to program in perl and
Apache, if not mod_perl, but i dont see why this should be happening.

	As usual, Apache 1.3.17, mod_perl 1.25, FreeBSD 4.2-Stable,
CGI.pm 2.752 and PostgreSQL 7.0.3 with Perl 5.005

	Anything you think i could be doing 'obviously' wrong ?

===


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

doom@kzsu.stanford.edu