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
>
> 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 "$x<BR>";
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\test>perl 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.
I tried Apache with MOD_PERL_TRACE=1 obtaining:
------------------------------------------------------------
D:\apache>apache
perl_parse args: '-w' 'nul' ...allocating perl interpreter...ok
constructing perl interpreter...ok
ok
running perl interpreter...ok
mod_perl: 0 END blocks encountered during server startup
loading perl module 'Apache'...loading perl module
'Apache::Constants::Exports'...ok
ok
mod_perl: calling perl_startup()
init `PerlHandler' stack
perl_cmd_push_handlers: @PerlHandler, 'Apache::Registry'
pushing `Apache::Registry' into `PerlHandler' handlers
perl_cmd_warn: 1
perl_cmd_setenv: 'test' = 'works'
loading perl module 'Apache'...ok
perl_startup: perl aleady running...ok
IBM_HTTP_Server/1.3.12.1 Apache/1.3.12 (Win32) mod_perl/1.24 running...
------------------------------------------------------------
The WEB server works fine, and so Perl with mod_perl, apart the warning
stuff. In the example above I was also using an environment variable that
can be later displayed by a Perl script dumping %ENV as an HTML table.
I tried to recompile carefully perl, apache and mod_perl but I cannot
figure the problem.
I tried to use the latest mod_perl version under CVS, with the same
problem: everything works beside warnings.
This are the versions I'm using:
------------------------------------------------------------
D:\apache>apache -V
Server version: IBM_HTTP_Server/1.3.12.1 Apache/1.3.12 (Win32)
Server built: Sep 14 2000 03:35:15
Server's Module Magic Number: 19990320:8
Server compiled with....
-D HAVE_MMAP
-D USE_MMAP_SCOREBOARD
-D NO_WRITEV
-D NO_OTHER_CHILD
-D NO_RELIABLE_PIPED_LOGS
-D MULTITHREAD
-D HTTPD_ROOT="/apache"
-D SUEXEC_BIN="/apache/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_XFERLOG="logs/access.log"
-D DEFAULT_ERRORLOG="logs/error.log"
-D TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
-D ACCESS_CONFIG_FILE="conf/access.conf"
-D RESOURCE_CONFIG_FILE="conf/srm.conf"
------------------------------------------------------------
Q:\web\perl\test>perl -V
Summary of my perl5 (revision 5 version 6 subversion 0) configuration:
Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32-x86
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=undef
use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
Compiler:
cc='cl', optimize='-Od -MD -DNDEBUG', gccversion=
cppflags='-DWIN32'
ccflags ='-Od -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
-DPERL_MSVCRT_READFIX'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=4
alignbytes=8, usemymalloc=n, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -release -libpath:"c:
\ar\wkst\bin\perl\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 "$x<BR>";
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