This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.

winxp platform SBCL+Apache+mod_lisp

2 posts · 2815 views

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.
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:
(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.

Re: winxp platform SBCL+Apache+mod_lisp

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?