Jump to content

Internal Server Error On Python Script


Recommended Posts

I got a "500 Internal Server Error" message when I try to call a simple Python script on a Jonhy's Heliohost account. My user is "dmfernan". The address for the script is http://fe.heliohost.org/cgi-bin/holamundo.py

 

The content of the script is:

#!/usr/bin/python

print "Content-type: text/html"

print ""

print "<html>"

print "<body>"

print "<p> Hola mundo desde Python</p>"

print "</body>"

print "</html>"

 

The permissions for "holamundo.py" is set to 755.

 

I don't know where's the source of the error. The script is so simple. I think that the error is the shebang line, but I read in this forum that the "/usr/bin/python" is the correct.

 

Thanx in advance.

 

Darío.

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