I've been trying to get this python script to work but no success. It's a simple hello world script and it keeps giving me a 500 error... I check the logs and the errors are not very useful. All it says is it can't find 500.shtml. No information about the reason the scripts aren't executing properly. I've uploaded this script to /cgi-bin/ as hello.cgi and chmoded to 777:
#!/usr/local/bin/python
print "Content-Type: text/plain\n\n"
import sys
print sys.version
print sys.modules
-----------------------
I even tried /usr/bin/python and that didn't work. Can anyone help me get this to work?
#!/usr/local/bin/python
print "Content-Type: text/plain\n\n"
import sys
print sys.version
print sys.modules
-----------------------
I even tried /usr/bin/python and that didn't work. Can anyone help me get this to work?