I have a simple python script I am trying to execute but when I access the file I get a HTTP500 error. Do I have the wrong Python Shebang?
- The python file has the permissions: 7,5,5
- Following VlexoFrees advice I have looked at my .htaccess file & its empty so it cant be misconfigured(although maybe I need to configure it for python scripts?)
- I have looked at the CPanel error logs but the 500 error isn't documented, it does show/record errors if I try to access the cgi-bin dir, ie, I go to www.selectrecipes.tk/cgi-bin/
- The python file should simply print out: "test"
The file is here: http://www.selectrec...cgi-bin/test.py
The contents of the file are simply:
#!/usr/bin/python2.7 print "content-type: text/html \n\n" print "test"
Edited by mishmash, 21 January 2012 - 01:17 AM.













