Re: PerlWarn On being ignored on win32
On Mon, 9 Oct 2000 [EMAIL PROTECTED] wrote: Hi, I have problems having mod_perl show his warnings: setting PerlWarn to On, nothing appears into the ErrorLog. I tried to change che LogLevel down to "debug": other messages do appear, but not the perl warnings. I'm using Perl 5.6.0, mod_perl 1.24, apache 1.3.12 as localhost. The same script issues warnings, as expected, using linux as web-server. This is the area in my httpd.conf file: --- LoadModule perl_module modules/ApacheModulePerl.dll PerlWarn On ScriptAlias /perl/test/ q:/web/perl/test/ Location /perl/test SetHandler perl-script PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI /Location --- What am I missing ? Any help would be appreciated, thanks. Franco Hi, Can you supply a stripped down version of a script which illustrates this? On my Win32, PerlWarn works with a simple script: #!/Perl/bin/perl.exe print "Content-type: text/html\n\n"; my $x; print "$xBR"; This is with the current cvs mod_perl version, though. Are you also running perl-5.6.0/mod_perl-1.24/apache_1.3.12 on your linux machine? best regards, randy kobes
Re: PerlWarn On being ignored on win32
erl\5.6.0\lib\MSWin32-x86\CORE" -machine:x86' libpth=C:\PROGRA~1\MICROS~2\VC98\lib libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl56.lib Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release -libpath:"c:\ar\wkst\bin\perl\5. 6.0\lib\MSWin32-x86\CORE" -machine:x86' Characteristics of this binary (from libperl): Compile-time options: Built under MSWin32 Compiled at Jun 25 2000 22:40:28 @INC: C:\AR\WKST\BIN\PERL\SITE\5.6.0\LIB/MSWin32-x86 C:\AR\WKST\BIN\PERL\SITE\5.6.0\LIB C:\AR\WKST\BIN\PERL\5.6.0\LIB/MSWin32-x86 C:\AR\WKST\BIN\PERL\5.6.0\LIB C:\AR\WKST\BIN\PERLLIB\AR c:/ar/wkst/bin/perl/5.6.0/lib/MSWin32-x86 c:/ar/wkst/bin/perl/5.6.0/lib c:/ar/wkst/bin/perl/site/5.6.0/lib/MSWin32-x86 c:/ar/wkst/bin/perl/site/5.6.0/lib Are you also running perl-5.6.0/mod_perl-1.24/apache_1.3.12 on your linux machine? Linux is running red-hat 6.2 with perl 5.005_03, apache 1.3.12 and mod_perl 1.21 (libperl.so, 3/3/2000). I do not have a direct access to that server (I cannot try to install different versions of modules), but I could see the logfile with some mod_perl warnings. The strange thing is that it DID see the warnings some versions ago of apache, it has been so difficult to make them appear. They simply did. Thanks. Franco Randy Kobes [EMAIL PROTECTED]To: [EMAIL PROTECTED] nnipeg.ca cc: [EMAIL PROTECTED] Subject: Re: PerlWarn On being ignored on win32 10/10/00 08.15 On Mon, 9 Oct 2000 [EMAIL PROTECTED] wrote: Hi, I have problems having mod_perl show his warnings: setting PerlWarn to On, nothing appears into the ErrorLog. I tried to change che LogLevel down to "debug": other messages do appear, but not the perl warnings. I'm using Perl 5.6.0, mod_perl 1.24, apache 1.3.12 as localhost. The same script issues warnings, as expected, using linux as web-server. This is the area in my httpd.conf file: --- LoadModule perl_module modules/ApacheModulePerl.dll PerlWarn On ScriptAlias /perl/test/ q:/web/perl/test/ Location /perl/test SetHandler perl-script PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI /Location --- What am I missing ? Any help would be appreciated, thanks. Franco Hi, Can you supply a stripped down version of a script which illustrates this? On my Win32, PerlWarn works with a simple script: #!/Perl/bin/perl.exe print "Content-type: text/html\n\n"; my $x; print "$xBR"; This is with the current cvs mod_perl version, though. Are you also running perl-5.6.0/mod_perl-1.24/apache_1.3.12 on your linux machine? best regards, randy kobes
Re: PerlWarn On being ignored on win32
On Tue, 10 Oct 2000 [EMAIL PROTECTED] wrote: [ .. ] On my Win32, PerlWarn works with a simple script: #!/Perl/bin/perl.exe print "Content-type: text/html\n\n"; my $x; print "$xBR"; Randy, my script was very similar to the one you provide. I tried your script with the Perl I'm using obtaining: Q:\web\perl\testperl simple.pl Content-type: text/html Use of uninitialized value in concatenation (.) at simple.pl line 5. BR Q:\web\perl\test This make me think that the Perl executables is ok. The execution of your script makes an HTML containing a BR but non warnings. [ ... ] Hi, If you have fatal errors, do these get logged OK in the server's error log? Also, what happens if you use the CGI::Carp module, either directing things to the same or another error log file, or perhaps by trying the warningsToBrowser() function, which embeds warnings in HTML comments. best regards, randy kobes
PerlWarn On being ignored on win32
Hi, I have problems having mod_perl show his warnings: setting PerlWarn to On, nothing appears into the ErrorLog. I tried to change che LogLevel down to "debug": other messages do appear, but not the perl warnings. I'm using Perl 5.6.0, mod_perl 1.24, apache 1.3.12 as localhost. The same script issues warnings, as expected, using linux as web-server. This is the area in my httpd.conf file: --- LoadModule perl_module modules/ApacheModulePerl.dll PerlWarn On ScriptAlias /perl/test/ q:/web/perl/test/ Location /perl/test SetHandler perl-script PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI /Location --- What am I missing ? Any help would be appreciated, thanks. Franco