I know there have been several posts concerning Python and CGI / HTML, but I can't get my little script to even print a web page.
#!/usr/bin/python
print "Content-Type: text/html\n\n"
print
import sys
sys.stderr = sys.stdout
import cgitb; cgitb.enable(display=0, logdir=".")
print """
<html>
<body>
<div align="center"><font style="font-family:verdana; font-size:18px">Hello from Python</font></div>
<br>
Goodbye.
</body>
</html>"""
I get a '500 server error' when I try to run this through a web server, but it runs without errors on my command line.
The file permissions are rwxr-xr-x.
I've posted in comp.lang.python but haven't found a solution there.
The script does not create a log file in the current directory either.
Can someone here point out why this may not be working?