PerlRequire executed 4 times on apache startup

2007-08-28 Thread Tobias Zeising
Hi all, I have a weird problem: on startup apache executes 4 times a Perl Script I included via PerlPostConfigRequire startup.pl in the httpd.conf. The startup script contains following code: #!/usr/bin/perl my $file = 'c:\tmp\test.txt'; open(INFO ,$file) || die Error $!; print INFO

Re: PerlRequire executed 4 times on apache startup

2007-08-28 Thread William A. Rowe, Jr.
Tobias Zeising wrote: Hi all, I have a weird problem: on startup apache executes 4 times a Perl Script I included via PerlPostConfigRequire startup.pl Yes, as Foo observed, this will happen 2x on Unix, 4x on Windows due to the MPM. Notice that 1x and 2x (and 5x and 8x and 11x upon

Re: PerlRequire executed 4 times on apache startup

2007-08-28 Thread Foo JH
I've had this same experience on Win32 Apache 2 as well. It could be related to the MPM model that the Win32 implementation employs. Tobias Zeising wrote: Hi all, I have a weird problem: on startup apache executes 4 times a Perl Script I included via PerlPostConfigRequire startup.pl in the

building modperl in cygwin

2007-08-28 Thread bhaskar
hi all when i am executed command make for building mod_perl in cygwin, i got the following errors make[1]: *** [mod_perl.lo] Error 1 make[1]: Leaving directory `/cygdrive/e/mod_perl-2.0-current/mod_perl-2.0.3/src/ modules/perl' make: *** [modperl_lib]

Re: Migrate LWP::UserAgent + HTTP::Request to mod_perl2

2007-08-28 Thread Perrin Harkins
On 8/27/07, Nguyen Vu Hung [EMAIL PROTECTED] wrote: The following code run without problems under Apache 1.3.29, Perl 5.6.1, mod_perl 1.29. Under the new environment which is Apache 2.0.52, Perl 5.8.8, mod_perl 2.0.3 ( Cent OS 4.5 ), it won't run. There is no mod_perl-related code in what