I have loaded xampp on my Windows XP box, and I want to us it for development work so thatI don't have to ftp my files to the Unix server to see if they work. I guess a lot of folks do this.
I see some strange symptoms:
- when I click on the link that calls the cgi script (came from some shared scripts site on the internet) it doesn't run the script (which runs quite nicely on the Unix server). It instead gives me an error message, but not a normal error message, but rather the html code for the error message. BTW: I have the shebang line as correct as I can make it.
this is what I see in my firefox window:
- - - - - - - - - - - -
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Server error!</title>
<link rev="made" href="mailto:admin@localhost" />
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
body { color: #000000; background-color: #FFFFFF; }
a:link { color: #0000CC; }
p, address {margin-left: 3em;}
span {font-size: smaller;}
/*]]>*/--></style>
</head>
<body>
<h1>Server error!</h1>
<p>
The server encountered an internal error and was
unable to complete your request.
</p>
<p>
Error message:
<br />Premature end of script headers: index.cgi
</p>
<p>
If you think this is a server error, please contact
the <a href="mailto:admin@localhost">webmaster</a>.
</p>
<h2>Error 500</h2>
<address>
<a href="/">localhost</a><br />
<span>11/17/06 11:03:36<br />
Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d mod_autoindex_color PHP/5.1.6</span>
</address>
</body>
</html>
- - - - - - - - -
This tells me that there is some configuration setting or other that is incorrect. The comments in httpd.conf are less than helpful. Is there anywhere where there is a document with cookbook instructions on what Windows XP needs to make Apache run cgi (perl) scripts?
Thanx,
rlm1947