Problems getting even simple examples working on IIS-6 :(

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
CaveGuy
Posts: 112
Joined: Sun Oct 13, 2002 3:00 pm
Location: Columbus Ohio
Contact:

Problems getting even simple examples working on IIS-6 :(

Post 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.
Bob the Caveguy aka Lord High Fixer.

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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.
Last edited by Lutz on Thu Jun 03, 2004 12:48 am, edited 1 time in total.

CaveGuy
Posts: 112
Joined: Sun Oct 13, 2002 3:00 pm
Location: Columbus Ohio
Contact:

Post 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.
Bob the Caveguy aka Lord High Fixer.

alexobelanger
Posts: 2
Joined: Thu Jul 22, 2004 6:56 pm
Location: Bay Area - California

trying to get .cgi scripts running and executed with newlisp

Post 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

nigelbrown
Posts: 429
Joined: Tue Nov 11, 2003 2:11 am
Location: Brisbane, Australia

Post 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

alexobelanger
Posts: 2
Joined: Thu Jul 22, 2004 6:56 pm
Location: Bay Area - California

newlisp cgi and IIS

Post 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

Locked