[Tutor] Setting up server for CGI

Kent Johnson kent37 at tds.net
Fri Oct 31 11:31:57 CET 2008

On Thu, Oct 30, 2008 at 11:18 PM, <btkuhn at email.unc.edu> wrote:

> I'm not sure what you mean, "What directory do you run from?".

I mean, what is the working directory when you run your cgihttpserver.py
program. You should be in the parent directory of the cgi directory so the
server can find the cgi files. So, given the paths you originally specified,
at the command prompt try these two commands:

cd C:\cgihome
python server\cgihttpserver.py

Then browse to http://localhost:8000/cgi/cgitest.py

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20081031/8023b72a/attachment-0001.htm>

More information about the Tutor mailing list