[BioPython] help with cgi in python
Ravinder Singh
Ravinder.Singh@colorado.edu
Wed, 27 Mar 2002 13:10:46 -0700
Hi,
I've used perl for cgi in the past. I'm convinced that python is simpler
to use. So I thought I should switch to python. However, things are not
working as expected. As an example, I've a file text.cgi which has
permission for everyone to execute (chmod +x test.cgi). The content of
this file is between the # marked lines:
##############################
#! /usr/local/bin/python
import cgi
print "Content-type: text/html\n"
print "<html><body><p>Hello!</p></body></html>"
###############################
Next, I generate a form on the web (the code includes <form method=POST
action="test.cgi"> statement.
Now when click submit, I get the following message:
-----------------------------------------------------------------
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, dubin@colorado.edu 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.
Apache/1.3.6 Server at mcdb.colorado.edu Port 80
-----------------------------------------------------------------------
In fact, even if I use the example (CGI 101) from Programming Python
(Mark Lutz), I get exactly the same error message.
Any help will be greatly appreciated.
Thanks,
Ravinder
--
********************************************************************************
Dr. Ravinder Singh
Assistant Professor
MCD Biology
347 UCB
University of Colorado
Boulder, CO 80309-0347
(303)492-8886 (voice)
(303)492-7744 (fax)