I'm attempting to set up CLozure CL for CGI programming and have run into a snag.
I can run the program perfectly from the command line, but it won't run through the browser. To make sure that the webserver was properly configured I wrote a simple hello world app in C and ran that through the cgi interface and it worked.
Here is the program.
Thanks for any help.
I can run the program perfectly from the command line, but it won't run through the browser. To make sure that the webserver was properly configured I wrote a simple hello world app in C and ran that through the cgi interface and it worked.
Here is the program.
(defun test()
(format t "Content-type: text/html~%~%")
(format t "this is a test"))
(ccl:save-application "index.cgi" :toplevel-function #'test :prepend-kernel t)
Like I said everything works fine until it's run in apache. Here is the error log,Couldn't load lisp heap image fromWhy would the image load properly from the terminal but not from the browser? Permission issues? I ran Opera as root and had the same problem.
[Fri May 08 10:51:21 2009] [error] [client 127.0.0.1] Premature end of script headers: index.cgi
Thanks for any help.