【发布时间】:2015-02-22 23:31:25
【问题描述】:
我尝试部署一些说明书来在 Ubuntu 14.04 上配置 Apache2 和Passenger。下面是我正在安装的说明书列表,按照它们在 run_list 中出现的顺序排列:
build-essential 2.1.3,
apt 2.6.1,
iptables 0.14.1,
logrotate 1.7.0,
apache2 2.0.0,
vim 1.1.2,
passenger_apache2 2.2.3
我正在从我的开发工作站引导我的 vagrant vm,并且食谱似乎都安装得没有错误,除非它到达了乘客 apache2 食谱。我可以提供整个广泛的输出,但我相信以下是输出的信息部分:
STDERR: [Wed Jan 21 14:05:17.027610 2015] [core:warn] [pid 26648] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
node.vagrantup.com (2)No such file or directory: AH02297: Cannot access directory '/etc/apache2/${APACHE_LOG_DIR}/' for log file '${APACHE_LOG_DIR}/other_vhosts_access.log' defined at /etc/apache2/conf-enabled/other-vhosts-access-log.conf:2
node.vagrantup.com AH00014: Configuration check failed
我只看到几个讨论表明 $HOME 环境变量没有为守护进程的 chef-client 设置的问题。但是,我不清楚如何纠正这种情况。在我学习如何使用 Chef 时,如果社区能提供任何见解,我将不胜感激。
谢谢
更新:查看passenger_apache2 食谱README,由于在该版本的操作系统中使用了Apache 2.4,显然Ubuntu 14.04 尚不支持该食谱。此外,我发现我错过了输出中的一个错误:
WARNING: Apache doesn't seem to be compiled with the 'prefork', 'worker' or 'event' MPM
node.vagrantup.com Phusion Passenger has only been tested on Apache with the 'prefork', the
node.vagrantup.com 'worker' and the 'event' MPM. Your Apache installation is compiled with
node.vagrantup.com the '' MPM. We recommend you to abort this installer and to recompile
node.vagrantup.com Apache with either the 'prefork', the 'worker' or the 'event' MPM.
想知道是否有人使用 Chef Server 在 Ubuntu 14.04 和 Apache 2.4 上部署乘客。如果有,怎么做?
更新 2:我也无法在应该支持的 Ubuntu 12.04 上使用它。真的很想知道是否有人可以使用这本食谱,如果可以,如何使用。
【问题讨论】:
-
我们在 CentOS 而不是 ubuntu 上,但我们放弃了乘客食谱,只是从食谱中运行乘客宝石,因为它似乎不那么充满危险。 YMMV。
-
谢谢,怀亚特。你能分享你的安装乘客 gem 的食谱吗?
-
需要注意的是,我的 linux、厨师和 ruby 技能很糟糕,这里是肉肉的部分:gist.github.com/anonymous/1ba9784760913810b820
-
谢谢您,先生!你的不能比我的差! :) 感谢您的帮助。
标签: apache chef-infra passenger cookbook