I understand there is support for Python on the free tier, but I can't seem to get it to work.
In Cpanel I stored the file, mkform.py in public_html/cgi-bin. I understand a Python file should run there. The following (very simple) code is contained in the file (I plan to do something much more computationally complex later, which is why I wish to run Python), but for now, just want to get something working:
#!/usr/bin/env python
print("Content-type: text/html")
print("")
print("<html>")
print("<body>")
print( "Hi there")
print("</body>")
print("</html>")
Currently, if I go to my site, http://zmt.pcriot.com/cgi-bin/mkform.py, I get a 403 Forbidden error.
Further, for good measure, I added a file called .htaccess to the top level folder /home/zmtpcrio I had read this wasn't needed if the Python file was in cgi-bin, but after not working, I added it anyway. Currently there in this file is the following code:
AddHandler cgi-script .py
Anyone who can help me to get my Python script kicked off would be hugely appreciated!
In Cpanel I stored the file, mkform.py in public_html/cgi-bin. I understand a Python file should run there. The following (very simple) code is contained in the file (I plan to do something much more computationally complex later, which is why I wish to run Python), but for now, just want to get something working:
#!/usr/bin/env python
print("Content-type: text/html")
print("")
print("<html>")
print("<body>")
print( "Hi there")
print("</body>")
print("</html>")
Currently, if I go to my site, http://zmt.pcriot.com/cgi-bin/mkform.py, I get a 403 Forbidden error.
Further, for good measure, I added a file called .htaccess to the top level folder /home/zmtpcrio I had read this wasn't needed if the Python file was in cgi-bin, but after not working, I added it anyway. Currently there in this file is the following code:
AddHandler cgi-script .py
Anyone who can help me to get my Python script kicked off would be hugely appreciated!