2

设置:

我正在尝试使用 Apache 2.4.7 在 Ubuntu 14.04 上安装 ColdFusion 9。严重地。不要问。

  • 启动一个安装了 LAMP 堆栈的 Vagrant Box ( xplore/ubuntu-14.04 );
  • 执行apt-get updateapt-get upgrade
  • 已安装libstdc++5(但仍然收到 CF 无法验证已安装的警告);
  • ColdFusion_9_WWEJ_linux64.bin.

我必须创建一个符号链接来/etc/apache2/apache2.conf调用/etc/apache2/httpd.conf才能安装 CF,因为 CF9 不允许您指定 apache 配置文件名,但除此之外一切都很顺利。

问题:

当我使用 CF 启动时,./opt/coldfusion9/bin/coldfusion start我收到以下消息:

There was an error while running the connector wizard
Connector installation was not successful

...这是cf-connectors.sh修改 my的结果apache2.conf,告诉它加载模块/opt/coldfusion9/runtime/lib/wsconfig/1/mod_jrun22.so,然后尝试重新启动 Apache 并由于此错误而失败:

apache2: Syntax error on line 223 of /etc/apache2/apache2.conf:
Cannot load /opt/coldfusion9/runtime/lib/wsconfig/1/mod_jrun22.so into server:
/opt/coldfusion9/runtime/lib/wsconfig/1/mod_jrun22.so:
undefined symbol: ap_log_error

采取的故障排除步骤:

我跟踪了 Apache 错误日志,但这并没有多大帮助:

[mpm_prefork:notice] [pid 1516] AH00173: SIGHUP received.  Attempting to restart
[mpm_prefork:notice] [pid 1516] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.3 configured -- resuming normal operations
[core:notice] [pid 1516] AH00094: Command line: '/usr/sbin/apache2'

JRun 二进制文件确实存在,在/opt/coldfusion9/runtime/bin/jrun. 但是,我看过像这样的教程,显示它位于/opt/jrun4...这很奇怪,因为我的 CF9 版本正在引用mod_jrun22.so,让我相信存在版本差异。

运行./opt/coldfusion9/runtime/bin/jrun status,我得到这个输出:

The coldfusion server is running
No jndi.properties file was found in samples's SERVER-INF directory. The JRun kernel requires JNDI information.
The samples server is not running
The admin server is not running

...这告诉我缺少indi.properties文件,并且示例和管理服务器未运行。我认为这是cf-connectors.sh失败的结果。

问题:

如何使 CF 连接器向导成功?我在这里想念什么?

提前致谢!

4

2 回答 2

1

虽然 Adob​​e 不支持 Apache 2.4,但可以让它运行,但可以针对 Apache 2.4 源重新编译 mod_jrun 模块(对源代码进行小幅修改后)。

如果您仍然感兴趣,我的博客文章中有完整的说明。

Apache 2.4 上的 mod_jrun (Ubuntu 14.04 + ColdFusion 9)

于 2014-09-26T12:21:31.743 回答
1

Coldfusion 9 不支持 Apache 2.4.x,请在此处查看我的回答: Apache won't start with ColdFusion 10: mod_jk.conf procedure not found

我建议您安装 Apache 2.2,然后您应该能够安装连接器。

于 2014-09-06T10:35:44.357 回答