Jump to content

[Solved] Johnny python3.10: HTTP 500 internal server error occurs


karplus

Recommended Posts

 

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

Link to comment
Share on other sites

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