Jump to content

Python Internal server error in johnny server


cheaton

Recommended Posts

#!/usr/bin/python36

print ("Content-type:text/html\r\n\r\n")
print ('<html>')
print ('<head>')
print ('<title>Hello Word - First CGI Program</title>')
print ('</head>')
print ('<body>')
print ('<h2>Hello Word! This is my first CGI program</h2>')
print ('</body>')
print ('</html>')

I wrote this code as new.py into my account under /public_html/cgi-bin/

but It didn't work.

I also tried to change permission 755, and tried to #!/usr/bin/python310 instead #!/usr/bin/python36.

And tried to change Line break type: to Unix

I wr

Is Johnny server not capable with python?

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