HelioHost Posted July 2, 2017 Posted July 2, 2017 Hi, I am having problems with basic Python setup. I have a simple test.py filein cgi-bin -folder and in addition, .htaccess-file to add a handler("AddHandler python-program .py") for python. The test.py is as follows: "#!/usr/bin/python print "Content-type: text/html\n\n"print "This is a test"" But all that I get from the address .../cgi-bin/test.py is the code writtenas it is. Permissions for both the cgi-bin folder and the file are 0755. How can I solve this? Thankyou in advance!
HelioHost Posted July 3, 2017 Author Posted July 3, 2017 Hello! My main domain is editorlookup. Antti On 2 Jul 2017 11:28 p.m., "Heliohost Support" wrote: What is your username or main domain? You may view the status of your ticket by visiting: http://www.helionet.org/index/index.php?showtopic(681 Thank you,Heliohost supporthttp://www.heliohost.org/http://www.helionet.org/
Krydos Posted July 3, 2017 Posted July 3, 2017 There you go http://editorlookup.heliohost.org/cgi-bin/test.py The problem was /home/apjkosk/public_html/.htaccess I renamed it to .htaccess-old so your script would work.
HelioHost Posted July 3, 2017 Author Posted July 3, 2017 Awesome, thank you so much! On 3 Jul 2017 7:15 a.m., "Heliohost Support" wrote: > There you go http://editorlookup.heliohost.org/cgi-bin/test.pyThe problem> was /home/apjkosk/public_html/.htaccess I renamed it to .htaccess-old so> your script would work.>> You may view the status of your ticket by visiting:>> http://www.helionet.org/index/index.php?showtopic(681>> Thank you,> Heliohost support> http://www.heliohost.org/> http://www.helionet.org/>>
Recommended Posts