I have a test.py in my cgi-bin folder on my webserver, and when I run it I get a 500 Internal Server Error. What am I doing wrong? Here’s the code:
#!/usr/bin/python
import os
print "Content-type: text/plain\n\n"
print "hi"
What permissions do I need to have?
That won’t produce valid HTTP output. The HTTP specification requires two characters per line ending
\r\n.Also try running the script from a shell. Also look at any debug logs from the server.