首页 文章

linux apache2 mod_lisp重访CLISP

提问于
浏览
0

试图按照上一个问题的指南Apache + mod_lisp + clisp

CLISP已安装并成功运行:

(加载“modlisp-clisp”)(modlisp:modlisp-server)运行正常,即无休止地运行

Python通过localhost从/ usr / lib / cgi-bin中正常工作

试图使clisp服务器工作在/ var / www / html / lsp之外

浏览器访问通过localhost / lsp打印:mod_lisp 2.0这是一个由mod_lisp发送的常量html字符串2.0 CLISP apache Linux

但是localhost / lsp / test.lisp只返回内部服务器错误(chmod 777 test.lisp完成)

clisp口译员的test.lisp没有出现名为“content-type”的包:

(defun xyz()
    (format t 'Content-Type: text/html;charset=utf-8')
    (print())
    (print())
    (print(coerce '(#\u2211) 'string))
    (print(coerce '(#\U20AC) 'string))
    (format t "hello world!")
)
(xyz)

详细信息:uname -a Linux me-H97N-WIFI 3.13.0-37-generic#64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU / Linux

apache2ctl -M AH00558:apache2:无法使用127.0.1.1可靠地确定服务器的完全限定域名 . 全局设置'ServerName'指令以禁止此消息已加载模块:... lisp_module(共享)..

/etc/apache2/sites-enables/000-default.conf:

ServerAdmin webmaster@localhost
DocumentRoot /var/www/html

ScriptAlias / cgi-bin / / usr / lib / cgi-bin /

AllowOverride无选项ExecCGI -MultiViews SymLinksIfOwnerMatch订单允许,拒绝允许所有人

(我的LISP修正案:)

位置/ var / www / html / lsp> SetHandler lisp-handler位置>

/etc/apache2/mods-enabled/lisp.conf:

LispServer 127.0.0.1 3000“/ var / www / html / lsp”

我哪里出错了? lisp服务器应该以某种方式在python下运行cgi-bin吗?我如何发送HTML Headers ?

1 回答

  • 0
    '
    

    不是有效的字符串分隔符 . 它是quote operator,导致它标记的表单未被评估,因此您可以调用在这些表单上运行的函数 .

    尝试用双引号替换单引号,这将导致它被读作字符串 .

    (format t "Content-Type: text/html;charset=utf-8")
    

相关问题