[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modperl
Subject: mod perl 2.0.4-dev using perl510.dll on Win32 XP returns "Can't find
From: Joe Smoker <joe-smoker () sbcglobal ! net>
Date: 2008-08-26 23:20:32
Message-ID: 48B48FC0.70107 () sbcglobal ! net
[Download RAW message or body]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hey guys,<br>
<br>
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!!!!!!!!! <br>
<br>
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, <b>when I
try to run any sample script, I get the following error in the
error.log file:</b><br>
<br>
[error] Can't find string terminator '"' anywhere before EOF at (eval
14) line 21 .\n<br>
<br>
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...
<b>here's the script that I tested that works with the external Perl
(5.10) interpretor:</b><br>
<br>
#!c:/perl/bin/perl<br>
<br>
use strict;<br>
use warnings;<br>
use CGI;<br>
<br>
my $query = new CGI;<br>
<br>
print $query->header( "text/html" );<br>
<br>
print <<END_HERE;<br>
<html><br>
<head><br>
<title>My First CGI Script</title><br>
</head><br>
<body bgcolor="#FFFFCC"><br>
<h1>This is a pretty lame Web page</h1><br>
<p>Who is this Ovid guy, anyway?</p><br>
</body><br>
</html><br>
END_HERE<br>
<br>
# must have a line after "END_HERE" or Perl won't recognize<br>
# the token<br>
<br>
<b>Here's the stuff in my httpd file:</b><br>
<br>
LoadFile "C:/Perl/bin/perl510.dll"<br>
LoadModule perl_module modules/mod_perl.so<br>
<br>
Alias /perl/ "C:/Documents and Settings/Mitch's Room/My
Documents/Mitch/Html/Cgi/"<br>
<br>
<Location /perl/><br>
SetHandler perl-script<br>
PerlResponseHandler ModPerl::Registry<br>
Options +ExecCGI +FollowSymLinks<br>
PerlOptions +ParseHeaders<br>
</Location><br>
<br>
Any help with this stuff will be greatly appreciated... Thanks again,
in
advance. - Joe -<br>
<br>
</body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic