Jump to content

Recommended Posts

Posted
51 minutes ago, sapalv11 said:

Is it possible to run Python scripts on domains ending in .helioho.st?

Yes it is. Our Wiki offers a Python tutorial which may be helpful for you (as well as separate guides for Django and Flask, if you use those).Β 

  • 2 weeks later...
Posted

It says to "Leave 'UTF-8' as the encoding, set 'Line break type' to 'Convert to Unix style'".Β 

I just checked my own Johnny account and the option is there. Please have another look and if you do not see it, please share a screenshot of your view so we can look into this further.Β Screenshot_20251012-160413.thumb.png.be908294e982b34abac22780a53425a2.png

  • 2 weeks later...
Posted

I apologize for jumping on an old thread, but this thread helped me.

I recently copy and pasted the sample from the Wiki, but still got a 500 Internal Server Error. My "Line break type" was set to "convert to Windows style." (You have to use the Text Editor, rather than Code Editor, to see this setting. When I changed it to "convert to Unix style," it started working.Β 

TL;DR - Changing to "convert to Unix style" helped when my python script wasn't working.Β 

  • 2 weeks later...
Posted

I followed the guide: I created a file called "test.py" in cgi-bin, changed the permissions, and set it to "convert to Unix style," but it still gives this error.

I don't know if this helps, but the cgi-bin folder is empty; only test.py exists.

Β 

Screenshot_20251104-162402_Chrome.jpg

Posted

It doesn't work for numerous reasons:

  • First, you apparently deleted and recreated your cgi-bin folder, which breaks the ability to run CGI on the account.Β 
  • Second, you had the permissions on test.py set to 777 when they need to be 750.
  • Third, you translated the header values. Headers and server commands must be in English because these are machine-read values defined as part of international standards.Β 
  • print("Tipo di contenuto: testo/html\n\n")

I've fixed all the issues for you and the script is now working.

  • Thanks 1
Posted
3 minutes ago, wolstech said:

Β 

● I didn't have a cgi-bin folder, so I created it manually. Is there a way to restore and repair it?

● I enabled all file and directory permissions.

● The headers are in English, I just checked.

I'm attaching the error logo.

Β 

Β 

Screenshot_20251104-172907_Chrome.jpg

Posted

The headers were in English because I changed them for you. I already fixed the CGI bin folder for you as well as the permissions. They should not all be turned on, and the server will refuse to run the script for security reasons if you do set them that way.

Either way, glad to see everything is working now.

  • Thanks 1

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...