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 "$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.
I tried Apache with MOD_PERL_TRACE=1 obtaining:
D:\apacheapache
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:\apacheapache -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\testperl -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