I am working with a shared hosting environment which as well as other things supports Python. I have followed the examples and deployed my cgi file and then through chmod, gave it Read and Execute Permissions to the world and then Read, Write and Execute to the owner.
The code is simply this:
#!/usr/bin/python
# Required header that tells the browser how to render the text.
print "Content-Type: text/plain\n\n"
# Print a simple message to the display window.
print "Hello, World!\n"
When I then run this I get the following error:
A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again.
Any help is appreciated!
Andrew