flab Posted Saturday at 10:52 AM Posted Saturday at 10:52 AM tommy.heliohost doesnt support python projects ? Quote
wolstech Posted Saturday at 01:35 PM Posted Saturday at 01:35 PM It supports python, but it has an older version of python than Johnny and Morty. Note that there is no user interface for Python. https://wiki.helionet.org/Python_Tutorial Quote
flab Posted Saturday at 02:00 PM Author Posted Saturday at 02:00 PM i followed the docs for flask and normal python test script , literally code by code but still couldnt get any code to excute , when ever i try to /test.py in browser it downloads the file , i did everything as in docs Quote
MoneyBroz Posted Saturday at 03:47 PM Posted Saturday at 03:47 PM Is the file in the cgi-bin folder? Quote
MoneyBroz Posted Saturday at 03:48 PM Posted Saturday at 03:48 PM Also your account isn't suspended so don't Python support requests in the suspended accounts section. Quote
wolstech Posted Saturday at 03:49 PM Posted Saturday at 03:49 PM (edited) 15 minutes ago, MoneyBroz said: Is the file in the cgi-bin folder? He deleted the entire httpdocs folder and turned off Apache on top... It looks like you broke your account by deleting httpdocs (and cgi-bin, which was inside). Apache was also turned off. The httpdocs folder is your document root (Plesk does not use or honor public_html), and CGI runs through Apache on Plesk, so turning that off also prevents Python from running. I've renamed your public_html to httpdocs, fixed its permissions, recreated cgi-bin, and turned Apache back on. Please give it 2 hours for everything to take effect. Once everything has updated and Apache has restarted, this link should work for you: https://flab.heliohost.us/cgi-bin/test.py Edited Saturday at 04:03 PM by wolstech Fix link Quote
flab Posted Saturday at 04:08 PM Author Posted Saturday at 04:08 PM (edited) thank you for help , also is it possible to open custom ports for flask like server:5050 ? and get the server to work like that instead of default redirection to http(s) ports ? Edited Saturday at 04:11 PM by flab Quote
wolstech Posted Saturday at 04:34 PM Posted Saturday at 04:34 PM No it's not. Custom inbound ports are not supported on the shared hosting Plesk plans. If you want to open inbound custom ports, you'll need to buy a VPS instead. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.