Error500 with a python script!
Posted by: Mitheor
Posted on: 2008-05-06 03:28:00
Hi,
i was trying to use a python script but it always returns an 500 internal server error.
The script is very simple. I have tried to use the example of the the dreamhost wiki but it doesnt work either.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
#!/usr/bin/python
def main():
print "Content-type: text/html"
print
print "<html><head>"
print "<title>Hello World from Python</title>"
print "</head><body>"
print "Standard Hello World from a Python CGI Script"
print "</body></html>"
if __name__ == "__main__":
main()
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@uguu-web.com 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."
Heeeeelp! >_<