Jump to content

Recommended Posts

Posted

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 

Posted

Also your account isn't suspended so don't Python support requests in the suspended accounts section.

Posted (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 by wolstech
Fix link
Posted (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 by flab
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...