Newbie want Python CGI on Mac OS X10.2

sismex01 at hebmex.com sismex01 at hebmex.com
Thu Oct 31 11:50:49 EST 2002


> From: Mel Bohince [mailto:melbohince at attbi.com]
> 
> I have a problem (many really), didn't really get too far, 
> hope someone can help. Maybe you can reminisce when your
> problems were this easy.
> 
> I got Apache/1.3.26 to run the 
> http://127.0.0.1/cgi-bin/test-cgi that comes
> preinstalled. But when I put a very simple python script:
> 
>  #!/usr/lib/python 
> 
> print """Content-type: text/html
> 
> hello world"""
> 
> and I point to http://127.0.0.1/cgi-bin/simple.py the browser 
> replies with
> an "Internal Server Error".
> 
> Any clues for the clueless?
>

Does your script have executable permissions?

e.g.: chmod 755 simple.py

so that it can be executed.

-gustavo




More information about the Python-list mailing list