Jump to content

Recommended Posts

Posted

Hi,

 

I am having problems with basic Python setup. I have a simple test.py file

in 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 written

as it is. Permissions for both the cgi-bin folder and the file are 0755.

 

How can I solve this? Thankyou in advance!

Posted

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/

>

>

Guest
This topic is now closed to further replies.
×
×
  • Create New...