52 lines
2.4 KiB
Plaintext
52 lines
2.4 KiB
Plaintext
From: bill_seitz at my-dejanews.com (bill_seitz at my-dejanews.com)
|
|
Date: Thu, 15 Apr 1999 15:02:28 GMT
|
|
Subject: stupid Win-CGI getting started question
|
|
References: <7f0f0h$pfb$1@nnrp1.dejanews.com> <8DA86302Bduncanrcpcouk@news.rmplc.co.uk> <7f2no0$n80$1@nnrp1.dejanews.com> <8DA9637FEduncanrcpcouk@news.rmplc.co.uk>
|
|
Message-ID: <7f4v1u$jpd$1@nnrp1.dejanews.com>
|
|
Content-Length: 2001
|
|
X-UID: 32
|
|
|
|
In article <8DA9637FEduncanrcpcouk at news.rmplc.co.uk>,
|
|
Duncan Booth <duncan at rcp.co.uk> wrote:
|
|
|
|
> I didn't say it was impossible to run .py files as CGI, simply that I had
|
|
> problems getting it to work. Since my number one priority was not to take
|
|
> the web server off-line at all, there were limits to how far I could play
|
|
> around with it. I'm sure there must be some way to get it to work, but I
|
|
> got enough for my purposes.
|
|
|
|
Gotcha.
|
|
|
|
I did some more playing around. No success, but here's what I did/found: When
|
|
I try to call a .py file I get the "This server has encountered an internal
|
|
error which prevents it from fulfilling your request" message. The NES error
|
|
log shows: [15/Apr/1999:10:35:53] failure: for host 192.246.193.43 trying to
|
|
GET /pcgi/dntest.py, send-cgi reports: could not send new process (File Not
|
|
Found Error) [15/Apr/1999:10:35:53] failure: cgi_send:cgi_start_exec
|
|
d:\program files\python\lib\dntest.py failed
|
|
|
|
If I rename the .py file to .cmd and call it with that name, it works fine.
|
|
|
|
I'm defining a /pcgi/ path to point to the location of the python files, so
|
|
I'm not counting on the suffix to mean anything. All the various CGI folders
|
|
get mapped to object name="cgi", but again, since suffix is irrelevant, that
|
|
shouldn't be the problem.
|
|
|
|
I went into mime.types and added the py extension to the cgi reference (note
|
|
that cmd is not in that extension list). Still get an error, but the log
|
|
changes to [15/Apr/1999:10:52:57] failure: for host 192.246.193.43 trying to
|
|
GET /pcgi/dntest.py, send-cgi reports: could not send new process (Error
|
|
Number is unknown) [15/Apr/1999:10:52:57] failure: cgi_send:cgi_start_exec
|
|
d:\program files\python\lib\dntest.py failed
|
|
|
|
Does this suggest any clues? I've asked a friend who doesn't know Python but
|
|
knows Netscape pretty well. Will report back if he has any suggestions.
|
|
|
|
|
|
-----------== Posted via Deja News, The Discussion Network ==----------
|
|
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
|
|
|
|
|
|
|
|
|