Jump to content

Recommended Posts

Posted

I cannot run Python scripts on HelioHost at my URL http://benesolutions.heliohost.org/cgi-bin/test.py.

 

It is a simplest script with the following content:

 

#!/usr/bin/python

 

print("Content-type: text/html\n\n")

print("This is a Python script text.")

 

Permissions are 0755, as recommended.

 

The server response was

Internal Server Error

 

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@benesolutions.heliohost.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

 

Could you clarify please what I’m doing wrong.

Posted

Thank you very much - now it works. Never could imagine that Python is so sensitive to EOLs. I've a project with tens of files, all prepared in Windows - it seems, I've to convert all of them. However, thanks again, the advice was really helpful.

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