[Tutor] Problems with test cgi script on windows XP/Apache

Tim Johnson tim at johnsons-web.com
Sun Feb 13 23:19:11 CET 2005


At 12:22 PM 2/13/2005, you wrote:
I'm attempting to run a test cgi script on windows xp with apache
as the http server. I keep getting a not found error from IE, and the
error log shows the following error message.
No such file or directory: script not found or unable to stat: c:/program 
files/apache group/apache/cgi-bin/test.py
Another cgi script using a different interpreter (rebol) is running 
properly. I was receiving
the same error message with the rebol script until I corrected the first 
line (she-bang).
>here is the code for the script:
>#!d:\Python23\python
>print "Content-type: text/html\n"
>print "hello"
>## I can confirm the the first line does contain the correct path to
>## the python executable. I have tried it with and without the ".exe"

My apologies for sending the above too soon. I am working with an
unfamiliar email program. To add to the above:
the mime-type string ("Content-type: text/html\n") is consistant with
what I am used to providing in linux. I am out of ideas for
the time being. Does anyone else have any?
TIA
tim


>_______________________________________________
>Tutor maillist  -  Tutor at python.org
>http://mail.python.org/mailman/listinfo/tutor
>
>__________ NOD32 1.998 (20050212) Information __________
>
>This message was checked by NOD32 Antivirus System.
>http://www.nod32.com


__________ NOD32 1.998 (20050212) Information __________

This message was checked by NOD32 Antivirus System.
http://www.nod32.com





More information about the Tutor mailing list