Jump to content

Recommended Posts

Posted

Username: N/A, Server: N/A, Main Domain: N/A

 

Hi

 

There is a python code that I need to run in the same folder of a html page

and I would like to request some help on how to run that script. Can you

help?

 

Thanks

Posted

By default you can only run python cgi in the cgi-bin folder. If you'd like to run python cgi in the public_html folder where your html page likely is you can do so by creating an .htaccess file with these contents:

 

AddHandler cgi-script .py

Options +ExecCGI

 

Let us know if you need additional help.

Posted

Thank you for your reply

 

For now I think that will be enough

 

Thanks

 

On Sat, Dec 14, 2019 at 7:21 PM Heliohost Support

wrote:

 

> By default you can only run python cgi in the cgi-bin folder. If you'd

> like to run python cgi in the public_html folder where your html page

> likely is you can do so by creating an .htaccess file with these

> contents:AddHandler cgi-script .pyOptions +ExecCGILet us know if you need

> additional help.

>

> You may view the status of your ticket by visiting:

>

> https://www.helionet.org/index/index.php?showtopic8031

>

> Thank you,

> Heliohost support

> https://www.heliohost.org/

> https://www.helionet.org/

>

>

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