Firstly, I'm not a python guy. I code in PHP / Asp .net.
I'm trying to get a test script running on my site.
In SSH, I type ">> python" and I see python is installed (2.66).
I created a test.py file in the root folder of my website with the following code:
The file has 755 permissions.
It is written using US ASCII encoding.
But it does not execute. And the code is displayed in plaintext in the browser.
/usr/bin/python does not exist when I look for it in SSH. Should it? (I'm using this path in the script because of this help topic: https://www.godaddy.com/help/what-is-the-path-to-python-on-my-hosting-account-644 )
/usr/lib/python2.6 does exist. I don't know the significance of it.
Thanks in advance.
Solved! Go to Solution.