wolstech Posted 4 hours ago Posted 4 hours ago 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 4 hours ago Author Posted 4 hours ago 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 2 hours ago Posted 2 hours ago Also your account isn't suspended so don't Python support requests in the suspended accounts section. Quote
wolstech Posted 2 hours ago Posted 2 hours ago (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 1 hour ago by wolstech Fix link Quote
flab Posted 1 hour ago Author Posted 1 hour ago (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 1 hour ago by flab Quote
wolstech Posted 1 hour ago Posted 1 hour ago 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.