Configure Python CGI failed

Steve Holden sholden at holdenweb.com
Wed Nov 14 07:46:19 EST 2001


You should look in your Apache error log to see what's been entered there -
you usually find much more information than you get in the browser, and it's
often obvious what the problem is.

Before going further, try the following:

1. Write a Python script and put it in the standard Apache cgi-bin
directory, which comes ready-configured to run programs. This will eliminate
configuration as a source of the problem.

2. Put a "shebang" line at the start of the script to tell Apache where to
find the Python interpreter and identify the script as a script. It will
look something like

    #!C:/Python21/python.exe

3. See if you can run this script in a browser.

If not, make sure you check the Apache error log, and include any entries in
it, as well as copying the exact browser error message, in a further post.

Good luck!

regards
 Steve
--
http://www.holdenweb.com/


"Kick" <store_li at sina.com> wrote in message
news:9st2pt$158u4s$1 at ID-12869.news.dfncis.de...
> I use the follwing envioment to run pythin CGI:
>
> Windows 98
> Apache 1.3.22
> Active Python 2.11
>
> I change the document root setting to my own directory. And add ExecCGI
> option to that directory description. finally I changed AddHandle
statement
> to .cgi .py.
>
> When I try to execute a program located in my document root, the IE said
> "Internel Error"
>
> What's wrong with my setting?
>
> Thanks for any help!!
>
>





More information about the Python-list mailing list