test.pyas your filename
Create New File
test.pyfile and click
reloadand make sure the
755shows up under the permissions column
UTF-8as the encoding and click
Heliohost rules!in your browser. The first line is the shebang. That's what tells the server which version of python to use. On Tommy and Johnny you can pick between:
Content-Typeheader. This is important so the server knows what to do with the output that follows. If you forget it your script will give a useless 500 error. The content type header always has to have the two end lines immediately after it. That's what the
cgi-binfolder is possible with some modifications.
.htaccessand copy/paste this in:
.pyfiles executable outside
cgi-bin, and the last line makes the filename
index.pyshow up if someone goes to your domain without having to type out the filename like
domain.heliohost.org/index.py. This also supports other CGI file extensions.