sapalv11 Posted October 1 Posted October 1 Γ possibile eseguire script Python su domini che terminano con .helioho.st? Quote
KazVee Posted October 1 Posted October 1 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).Β Quote
sapalv11 Posted October 12 Author Posted October 12 It doesn't work: the tutorial says I have to set the encoding to "Line break type", but it doesn't exist. Quote
KazVee Posted October 12 Posted October 12 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.Β Quote
PoppaBuzz Posted October 21 Posted October 21 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.Β Quote
sapalv11 Posted 5 hours ago Author Posted 5 hours ago 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. Β Quote
wolstech Posted 5 hours ago Posted 5 hours ago 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. 1 Quote
sapalv11 Posted 4 hours ago Author Posted 4 hours ago 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. Β Β Quote
wolstech Posted 4 hours ago Posted 4 hours ago 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. 1 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.