karplus Posted November 4, 2023 Share Posted November 4, 2023 Hello, i tried to run a simple test.py as stated on this tutorial https://wiki.helionet.org/tutorials/python and this topic too: Still i get http 500 error when i open https://karplus.helioho.st/cgi-bin/test.py ; I already checked line endings and they are in unix style; plus i wrote the code by hand directly in online text editor, and also tried copy&paste, but got no luck! Permissions are 755 as suggested by tutorial. In logs section I always got this error: End of script output before headers: test.py, referer: https://johnny.heliohost.org:8443/ , but I used print("Content-Type: text/html\n\n"), and all the versions of Python supported by Johnny. Where am I wrong? Best Regards Quote Link to comment Share on other sites More sharing options...
wolstech Posted November 5, 2023 Share Posted November 5, 2023 The cgi-bin folder needs to be 750, not 777. I changed the permissions for you and the script is working now. Quote Link to comment Share on other sites More sharing options...
karplus Posted November 6, 2023 Author Share Posted November 6, 2023 Thanks, works like a charm now. It would be useful for other users to update the wiki tutorial then 😃 Quote Link to comment Share on other sites More sharing options...
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.