Please help, I've spent nearly an hour trying to get python cgi scripts to work. Can someone please explain how I do this?
I put test.cgi in my cgi-bin folder with
in it and saved it. However, when I open it, I get a 500 server error. Please help.Code:#!/usr/bin/python print "Content-Type: text/plain\n\n" import sys print sys.version print sys.modules
I've tried :
-Changing the code to /user/local/bin/python, /user/local/bin/env python, /user/bin/env python
-Putting it in /scgi-bin
-Changing the main code to a dozen simple varients
-Saving as test.py and making the apache handler cgi-script for .py files


LinkBack URL
About LinkBacks
Reply With Quote

