Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #27480
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!212.27.60.64.MISMATCH!cleanfeed3-b.proxad.net!nnrp4-1.free.fr!not-for-mail |
|---|---|
| From | Gilles <nospam@nospam.com> |
| Newsgroups | comp.lang.python |
| Subject | [CGI] Basic newbie error or server configuration error? |
| Date | Mon, 20 Aug 2012 13:41:20 +0200 |
| Message-ID | <6c84389rqmrj01cppc0ppiedqd44o4mfdf@4ax.com> (permalink) |
| X-Newsreader | Forte Agent 3.1/32.783 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Transfer-Encoding | 7bit |
| Lines | 43 |
| Organization | Guest of ProXad - France |
| NNTP-Posting-Date | 20 Aug 2012 13:41:20 CEST |
| NNTP-Posting-Host | 82.237.75.54 |
| X-Trace | 1345462880 news-2.free.fr 2356 82.237.75.54:39146 |
| X-Complaints-To | abuse@proxad.net |
| Xref | csiph.com comp.lang.python:27480 |
Show key headers only | View raw
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.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
[CGI] Basic newbie error or server configuration error? Gilles <nospam@nospam.com> - 2012-08-20 13:41 +0200
Re: [CGI] Basic newbie error or server configuration error? Gilles <nospam@nospam.com> - 2012-08-20 13:56 +0200
Re: [CGI] Basic newbie error or server configuration error? Rod Person <rodperson@rodperson.com> - 2012-08-20 07:59 -0400
Re: [CGI] Basic newbie error or server configuration error? Gilles <nospam@nospam.com> - 2012-08-20 15:50 +0200
Re: [CGI] Basic newbie error or server configuration error? Hans Mulder <hansmu@xs4all.nl> - 2012-08-20 16:56 +0200
Re: [CGI] Basic newbie error or server configuration error? Gilles <nospam@nospam.com> - 2012-08-20 17:51 +0200
csiph-web