[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...&nbsp; I'm starting to think that it's not a CRLF problem, but
something else related to configuration... My external CGI files&nbsp; 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...&nbsp; 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)...&nbsp; 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&nbsp; does not like the CRLF chars in the notepad
file... but I also tried removing the CR chars with the same result...&nbsp;
<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-&gt;header( "text/html" );<br>
<br>
print &lt;&lt;END_HERE;<br>
&lt;html&gt;<br>
&nbsp; &lt;head&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;title&gt;My First CGI Script&lt;/title&gt;<br>
&nbsp; &lt;/head&gt;<br>
&nbsp; &lt;body bgcolor="#FFFFCC"&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;h1&gt;This is a pretty lame Web page&lt;/h1&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;p&gt;Who is this Ovid guy, anyway?&lt;/p&gt;<br>
&nbsp; &lt;/body&gt;<br>
&lt;/html&gt;<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>
&nbsp;Alias /perl/ "C:/Documents and Settings/Mitch's Room/My
Documents/Mitch/Html/Cgi/"<br>
<br>
&nbsp; &lt;Location /perl/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; SetHandler perl-script<br>
&nbsp;&nbsp;&nbsp;&nbsp; PerlResponseHandler ModPerl::Registry<br>
&nbsp;&nbsp;&nbsp;&nbsp; Options +ExecCGI +FollowSymLinks<br>
&nbsp;&nbsp;&nbsp;&nbsp; PerlOptions +ParseHeaders<br>
&nbsp; &lt;/Location&gt;<br>
<br>
Any help with this stuff will be greatly appreciated...&nbsp; 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