mod perl 2.0.4-dev using perl510.dll on Win32 XP returns "Can"t findstring terminator" err
am 27.08.2008 01:20:32 von Joe Smoker
Hey guys,
This is most likely related to my first post using Perl 5.8 and
matching mod perl, however, since this is a new version of Perl 5.10
and the DEV version of mod perl 2.0.4-dev, I thought I should post this
as well... I'm starting to think that it's not a CRLF problem, but
something else related to configuration... My external CGI files work
great so I can continue to go that route, but I would LOVE to embed
this stuff and get faster execution and additional functionality... If
there are any readers out there with a working httpd.conf file that
works in a Win32 XP environment, I'd LOVE to see a copy!!!!!!!!!
I've installed Win32 mod perl version 2.0.4-dev and Apache server 2.2.9
using Perl 5.10 and PHP 5.2.6 on my
XP Pro box according to the directions (I hope)... However, when I
try to run any sample script, I get the following error in the
error.log file:
[error] Can't find string terminator '"' anywhere before EOF at (eval
14) line 21 .\n
Seems like mod perl does not like the CRLF chars in the notepad
file... but I also tried removing the CR chars with the same result...
here's the script that I tested that works with the external Perl
(5.10) interpretor:
#!c:/perl/bin/perl
use strict;
use warnings;
use CGI;
my $query = new CGI;
print $query->header( "text/html" );
print <<END_HERE;
<html>
<head>
<title>My First CGI Script</title>
</head>
<body bgcolor="#FFFFCC">
<h1>This is a pretty lame Web page</h1>
<p>Who is this Ovid guy, anyway?</p>
</body>
</html>
END_HERE
# must have a line after "END_HERE" or Perl won't recognize
# the token
Here's the stuff in my httpd file:
LoadFile "C:/Perl/bin/perl510.dll"
LoadModule perl_module modules/mod_perl.so
Alias /perl/ "C:/Documents and Settings/Mitch's Room/My
Documents/Mitch/Html/Cgi/"
<Location /perl/>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options +ExecCGI +FollowSymLinks
PerlOptions +ParseHeaders
</Location>
Any help with this stuff will be greatly appreciated... Thanks again,
in
advance. - Joe -