[Tutor] Re: Apache w Py

McCarney, James Alexander James.Alexander.McCarney@Cognicase.com
Fri, 25 Jan 2002 09:27:31 -0500


I think if you have set up Python with Apache it's looking not for a .cgi
extension, but rather
an extension of .py. 

Put the following code in a py module, mine was "testcgi.py," save it in
cgi-bin, and let it rip! :-)

#!c:\python21 #or 22 or whateva
import cgi
cgi.test()

Israel wrote:
"""
Darn,,,, well, that's good actually, but that means my Apache set up needs
help...  Back to the Depths of the Docs and On with the Guess-Work! :)

~Israel~
"""

James Alexander McCarney, technical writer (450) 928-3386 x2262
Cognicase - M3i Systems, 1111 Saint-Charles Avenue West
11th Floor, East Tower, Longueuil, Quebec, J4K 5G4 Canada
http://www.m3isystems.com
mailto:James.Alexander.McCarney@Cognicase.com