I am having fits with win2003 server and cgi's. I am sure I am missing something stupid. Eariler versions works just fine on windows 2000 and NT4 servers for that matter. When I map ".cgi" to newlisp.exe and attempt to access an index.cgi that contains a simple (print ...) statement, I can see the exe running in the task manager. It loops for several minutes untill something times out. The browser reports; "CGI Timeout The specified CGI application exceeded the allowed time for processing. The server has deleted the process.[/color]" I can see the task die in the task manager when the timeout happens.
I see that there is now a newlisp.dll, can I use it with IIS6?
Appacheehehe is looking better every day :)
But not an option this time.
I am not familiar with IIS, but the first thing you always print from your cgi file should be (may be preceded by other header info like cookies):
(print "Content-type: text/htmlrnrn")
and the last statement should be:
(exit)
If one of the two things is missing you will get error messages and timeouts.
A minimum newlisp cgi would be:
(print "Content-type: text/htmlrnrn")
(println "<h2>Hello World</h2>")
(exit)
Another file I use often to debug cgi stuff is:
http://www.newlisp.org/environment.cgi
the source for this is in:
http://nuevatec.com/newlisp/environment.txt
Lutz
ps: newlisp.dll will not help you here.
No Joy... Tried them both, there is something messed up with 2003's priviledges, I am sure .... I will try and mess with it again in the morning.
Gents,
This may be a newbie topic for you. I am trying to get the newlips-blog 3 7 to work with IIS 5
Here is what I did,
1. Install newlisp on C:newlisp
2. Extract the .tgz to C:InetPubwwwrootblog
3. Created a virtual folder (alias=blog)
4. Mapped .cgi extension to C:newlispnewlisp.exe
5. Check NTFS file permissions, look alright
6. modify index.cgi first line
FROM #!/usr/bin/newlisp
TO #!/newlisp
using IE -> http://localhost/blog/index.cgi
Got error message:
"CGI Timeout
The specified CGI application exceeded the allowed time for processing. The server has deleted the process."
7. created helloworld.cgi:
#!/newlisp
(print "Content-type: text/htmlrnrn")
(println "<h2>Hello World</h2>")
(exit)
using IE -> http://localhost/blog/helloworld.cgi
Got error message:
"CGI Timeout
The specified CGI application exceeded the allowed time for processing. The server has deleted the process."
I see the newlisp.exe process start in the windows task manager, which would indicate the mapping is ok!
Any ideas?
Thanks,
- Alex
An earlier thread has some discussion of cgi with IIS on winXP - maybe
there is a hint there (I'd don't know enough about cgi to judge if
it's relevant)
thread - Web based address list from PalmPilot
Nigel
Thanks Nigel, it did provide some pointers.
This article proved to be useful to me, it discusses how to make python scripts run on IIS
http://support.microsoft.com/default.aspx?scid=kb;en-us;276494&Product=iis50
When mapping the newlisp executable:
WRONG C:newlispnewlisp.exe
RIGHT C:newlispnewlisp.exe %s %s
helloworld.cgi and environment.cgi does work...but not index.cgi yet
will continue working on it...
- Alex