On Mon, 20 Aug 2012 13:41:20 +0200 Gilles <nos...@nospam.com> wrote: > Hello > > Apache fails running this basic CGI script that I found on the Net: > > www.acme.com/cgi-bin/test.py?name=myname > =========== > #!/usr/bin/env python > > # Import modules for CGI handling > import cgi, cgitb > > cgitb.enable() > > # Create instance of FieldStorage > form = cgi.FieldStorage() > > # Get data from field 'name' > #name = form['name'].value > name = form.getvalue('name') > =========== > > This is what I get: > =========== > "Internal Server Error > > The server encountered an internal error or misconfiguration and was > unable to complete your request. > > Additionally, a 404 Not Found error was encountered while trying to > use an ErrorDocument to handle the request." > =========== > > FWIW, the script lives in www/cgi-bin/ where it should, was chmoded to > 755, and I put the following .htaccess file: > =========== > Options +ExecCGI > AddHandler cgi-script .py > =========== > > I'm not sure where to look for an error. Could it be some non-printed, > bad characters that prevent Python from compiling the source code? > > Thanks for any help.
Check the Apache error log, there should be more information there. -- Rod Person http://www.rodperson.com rodper...@rodperson.com Sent From Claws Mail 3.8.0cvs30 Win7 x86 GTK+ 2.16.6/GLib 2.24.0 -- http://mail.python.org/mailman/listinfo/python-list