Page 1 of 1
Problems getting even simple examples working on IIS-6 :(
Posted: Wed Jun 02, 2004 10:34 pm
by CaveGuy
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.
Posted: Wed Jun 02, 2004 11:00 pm
by Lutz
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/html\r\n\r\n")
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/html\r\n\r\n")
(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.
Posted: Thu Jun 03, 2004 12:12 am
by CaveGuy
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.
trying to get .cgi scripts running and executed with newlisp
Posted: Thu Jul 22, 2004 7:13 pm
by alexobelanger
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:\InetPub\wwwroot\blog
3. Created a virtual folder (alias=blog)
4. Mapped .cgi extension to C:\newlisp\newlisp.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/html\r\n\r\n")
(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
Posted: Thu Jul 22, 2004 8:19 pm
by nigelbrown
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
newlisp cgi and IIS
Posted: Thu Jul 22, 2004 11:21 pm
by alexobelanger
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.as ... duct=iis50
When mapping the newlisp executable:
WRONG C:\newlisp\newlisp.exe
RIGHT C:\newlisp\newlisp.exe %s %s
helloworld.cgi and environment.cgi does work...but not index.cgi yet
will continue working on it...
- Alex