newLISP Fan Club

Forum => newLISP and the O.S. => Topic started by: adamas on March 25, 2008, 04:11:04 PM

Title: How to run CGI with built-in web server?
Post by: adamas on March 25, 2008, 04:11:04 PM
Hi all,

I am trying to use newlisp's built-in web server.  It works perfectly on Linux. But it serves only static files on Win XP, for CGI files it gives an

 ERR:500 need /tmp directory configured

error message.  I found this string in newlisp.exe but I didn't check the C source for the reason.  Could you please give me any pointer?

Adam
Title: Re: How to run CGI with built-in web server?
Post by: Cyril on March 25, 2008, 08:01:01 PM
Quote from: "adamas"I am trying to use newlisp's built-in web server.  It works perfectly on Linux. But it serves only static files on Win XP, for CGI files it gives an

 ERR:500 need /tmp directory configured

error message.  I found this string in newlisp.exe but I didn't check the C source for the reason.  Could you please give me any pointer?


I have gone one step further: I have created the directory C:TMP, and the message disappears. I doesn't run any scripts although. So I second the question!
Title:
Post by: Lutz on March 26, 2008, 08:41:01 AM
- are you running IE version 7? then go back to IE 6 or use FireFox. There have been reports of IE 7 not working with newLISP server earlier.



- is newlisp.exe in the executable path? should be if installed from installer



- did you do a default install, or do you have changed drives/directories?
Title:
Post by: adamas on March 26, 2008, 04:17:04 PM
Quote from: "Lutz"is newlisp.exe in the executable path?


Thank you, that was the key.  A simple she-bang line in the cgi file like #!c:/path/to/newlisp.exe doesn't work.  But if newlisp.exe is on the PATH, a simple she-bang like #!newlisp works.  And I didn't need to create a tmp directory, either.