winxp platform SBCL+Apache+mod_lisp

Discussion of Common Lisp
Post Reply
doutu

winxp platform SBCL+Apache+mod_lisp

Post by doutu » Sat Oct 04, 2008 2:41 am

I want to ask one headache question . I setup SBCL (latest win version)+Apache (v 2.2.8)+mod_lisp2 to test a lisp base web application. here is my httpd.conf relative with mod_lisp settings.

Code: Select all

LoadModule lisp_module modules/mod_lisp2.so

LispServer 127.0.0.1 4005 "lisp"
AddHandler lisp-handler .lsp

<Location /lisp>
  SetHandler lisp-handler
</Location>

Alias /lisp/ "d:/Program Files/emacs/site-lisp/"

<Directory "d:/Program Files/emacs/site-lisp">
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
   Allow from all
   DirectoryIndex index.lsp
</Directory>
and my test lisp script hello.lisp:

Code: Select all

(format t "Content-type: text/html~%")
(format t "~%")
(format t "<html>~%")
(format t "<head>~%")
(format t "<title>why do I like "titular"</title>~%")
(format t "</head>~%")
(format t "<body~%>")
(format t "<p>What is it?~%")
(format t "It's a simple CGI program~%")
(format t "in Lisp</p>~%")
(format t "</body>~%")
(format t "</html>~%")
what I get http://localhost/lisp/hello.lisp is "Internal Server Error".
and the apache error log is "[error] (70014)End of file found: error reading from Lisp"
I do get help from google time and time again. I read most of article on this topic I can obtain. I can't tackle it! help me please.

thanks in advance.

Kompottkin
Posts: 94
Joined: Mon Jul 21, 2008 7:26 am
Location: München, Germany
Contact:

Re: winxp platform SBCL+Apache+mod_lisp

Post by Kompottkin » Sat Oct 04, 2008 4:38 am

I've never used mod_lisp, but I'd assume that it expects to communicate with client programmes as per a particular protocol. Usually, this communication is done by some kind of Lisp web server backend like Hunchentoot, for example. What you've written looks more like a CGI script than a component of a long-running process that would want to communicate with Apache via mod_lisp.

What backend are you using? Isn't 4005 usually a Swank port rather than a port used by a web server backend?

Post Reply