Reputation: 36247
Hi guys I am trying to follow http://elvenware.com/charlie/development/web/Python/Xampp.html to set up python with xampp . I am running xammp usb lite 1.77
following the directions here and on Python & XAMPP on Windows: how to?,
I have created
#!F:/Python27/python
print "Content-type: text/html\n\n"
print "<html><head><title>Hello World from Python</title></head><body>Hello World from a Python CGI Script</body></html>
when I try to run it after placing it in the cgi-bin folder and running it like htp://localhost/cgi-bin/test.py I get:
Premature end of script headers: test.py
BTW an included htp://localhost/cgi-bin/cgi.cgi script works!!
Any idea what I can do to fix this?
Thank you in advance,
Bill
Upvotes: 0
Views: 6156
Reputation: 1
I had the same problem with xampp.
The problem is in the httpd.conf
. With xampp apache will be installed with another httpd.conf
like the standalone install of apache.
Check your settings in the httpd.conf
and change it.
Upvotes: 0
Reputation: 4903
There is no ending "
on line 2 - unless it's a mistake in copy/pasting
Upvotes: 4