0

我有安装了 Windows x32、Apache 2.2 和 Resin 3.0.14 的 PC,我需要使用 Resin 配置 Apache。我已经红了文章http://www.caucho.com/resin-3.0/install/cse-apache.xtp,但还是有问题。这是来自 Apache 的配置

LoadModule mod_caucho "c:/Program Files/resin-3.0.14/win32/apache-2.0/mod_caucho.dll"
ResinConfigServer localhost 6802

<VirtualHost *:80>
      ServerName myapp.com
      ResinConfigServer localhost 6802
      DocumentRoot C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/myapp.com/webapps/ROOT
      DirectoryIndex default.htm index.jsp redirect.jsp index.html
      <Location /caucho-status>
         SetHandler caucho-status
      </Location>
</VirtualHost>

当我重新启动 Apache 它显示以下

httpd.exe: Syntax error on line 494 of C:/Program Files/Apache Software Foundati
on/Apache2.2/conf/httpd.conf: Cannot load C:/Program Files/resin-3.0.14/win32/ap
ache-2.0/mod_caucho.dll into server: The specified module could not be found.
Note the errors or messages above, and press the <ESC> key to exit. 

我从 Resin 4.0.32 获取了用于 Apache 2.2 的 mod_caucho.dll 并将其放置到我的 Resin 文件夹中,但在这种情况下,我收到另一个错误

httpd.exe: Syntax error on line 494 of C:/Program Files/Apache Software Foundati
on/Apache2.2/conf/httpd.conf: Can't locate API module structure `mod_caucho' in
file C:/Program Files/resin-3.0.14/win32/apache-2.2/mod_caucho.dll: No error
Note the errors or messages above, and press the <ESC> key to exit.

有没有人遇到过这样的问题?如何让它发挥作用?

4

1 回答 1

0

如果您使用的是 Apache 2.2,则应该使用 Resin 3.1.x 或 Resin 4.0.x。

你不能为不同版本的 Resin 混合 mod_caucho.dll,因为协议会不时调整。

此外,当您使用 Resin 3.1.x 或 Resin 4.0.x 进行安装时,由于 mod_caucho.dll 有 win32 和 win64 的复杂性,您需要使用适当的。

于 2012-10-24T17:36:03.443 回答