winxp platform SBCL+Apache+mod_lisp

Discussion of Common Lisp

winxp platform SBCL+Apache+mod_lisp

Postby 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/

LispServer 4005 "lisp"
AddHandler lisp-handler .lsp

<Location /lisp>
  SetHandler lisp-handler

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

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 &quot;titular&quot;</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.

Re: winxp platform SBCL+Apache+mod_lisp

Postby 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?
User avatar
Posts: 94
Joined: Mon Jul 21, 2008 7:26 am
Location: München, Germany

Return to Common Lisp

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 4 guests