Jump to content

Recommended Posts

Posted

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

 

Hi friends it's daniel from @entrevistasabba in twitter, i am just new

in phyton but i really need implement a flask whatsapp for my system,

the problem i can get execute in my space in heliohost even a simple

hello.py doesn't execute habe me pacient i'm really confused maybe can

you help me to see wich could or are the errors in the space

 

xtremesellajs@gmailcom franki.heliohost.org/flask/hola.py in python just

would like in php take a get var and to send this throug yowsup i have

working this in my linux that executes py but local -

 

maybe you like experienced in all give me a hand , i will deposit you

100 usd when i can show you to my boss,but i need to present this

working. plz touch all what you need. i am very confused .

 

Really gratefuly in advanced.

Posted

There's a few things going on. It looks like you're trying to do cgi in a non-cgi-bin directory so you're going to need an .htaccess file saying it's ok for .py files to be executable:

 

Options +ExecCGI

AddHandler cgi-script .py

 

Then your cgi needs to have a content type header:

 

print("Content-type: text.html\n\n")

 

Then your script needs to be executable. Make it 755 instead of 644 like it is now. Let us know if you need more help.

Posted

Just reading , really thanks i am just also for a friend of mine in the

coding area, i amsking his help i fordward this email also for himm

really thanks support, the app is working in another hosts like

openshift is a flask app .

 

maybe i amgoing to ask direct to my friend helps me to implement this in

your host .

 

Really thanks again for guiding me through this.

 

Daniel

 

El 2017-12-19 22:47, Heliohost Support escribio:

> There's a few things going on. It looks like you're trying to do cgi

> in a non-cgi-bin directory so you're going to need an .htaccess file

> saying it's ok for .py files to be executable:Options

> +ExecCGIAddHandler cgi-script .pyThen your cgi needs to have a content

> type header:print("Content-type: text.html\n\n")Then your script needs

> to be executable. Make it 755 instead of 644 like it is now. Let us

> know if you need more help.

>

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

>

> https://www.helionet.org/index/index.php?showtopic=30999

>

> Thank you,

> Heliohost support

> https://www.heliohost.org/

> https://www.helionet.org/

Posted

If you're interested in running a flask app check out http://wiki.helionet.org/Flask

 

Please be aware that you picked our only server that doesn't support flask. If you want to run a flask app on python 2.7 you need to be on Ricky, or if you want to run a flask app on Python 3.6 you need to be on Tommy. Let us know if you need any help switching servers.

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