I am trying to run a python script with CGI but have been unsucesful.
Is there anything I have to do from the cpanel to activate the .py files to run from the directory /cgi-bin/ ?
This is the simple test program I am trying to run:
#!/usr/bin/python2.2
# Tell the browser how to render the text
print "Content-Type: text/plain\n\n"
print "Hello, Python!" # print a test string
I also have tried as the first line:
#!/usr/bin/python1.5 and #!/usr/bin/python
and cannot make this simple script run.
Other scripts like .pl files run with no problem from /cgi-bin/
Python is installed, no question about it. I tested it from a ssh session.
I will appreciate your help.


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks