Newbie want Python CGI on Mac OS X10.2
Mel Bohince
melbohince at attbi.com
Thu Oct 31 15:46:40 EST 2002
Turns out that I didn't have my editor (BBEdit) saving the files with Unix
return characters. So if I did '%less test.py' I would see a bunch of ^M's.
Also the first line #!/usr/bin/python works.
> 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?
>
> -: -: -: -: -: -: -: -: \|/
> -: -: -: -: -: -: -: -: cU
> Mel Bohince
> Pjt Mgr,
> Arkay Packaging Corporation
> feet at att.net
> http://home.att.net/~melbohince/
>
More information about the Python-list
mailing list