Python CGI script 500 error

software development

#1

I’ve been unable to resolve an issue with a simplified python cgi script. I’ve been through the knowledge base and the wiki.

The error log states …
“Premature end of script headers”

I have changed the permisions “chmod 755 data.py” and wrote an even simpler script. The script does execute properly and looks find when ran in the shell. Any ideas?

The script contains

#!/usr/bin/python

print "Content-type: text/html"
print
print “Hello World!”