【发布时间】:2014-03-04 01:26:24
【问题描述】:
我在我的数字 Ocean 帐户中使用 Chef 来构建液滴/实例。我的服务器是 Ubuntu 12.04 x64 。 在我的 Cheffile 中,我有
...
site 'http://community.opscode.com/api/v1'
cookbook 'apache2',
:git =>'https://github.com/opscode-cookbooks/apache2'
....
在我的节点 json 中:
...
"apache": {
"default_modules" :
["status","alias","auth_basic","autoindex","dir","env","mime","negotiation","setenvif"]
},
...
"run_list": [
"recipe[gearman]",
"recipe[postgresql::server]",
"recipe[php]",
"recipe[apache2]",
"recipe[apache2::mod_php5]",
"recipe[mysql]",
"recipe[mysql::server]"
]
由于 authz 的一些错误,我不得不限制模块。但是现在,我总是收到错误
* The apache2 configtest failed.
STDERR: Output of config test was:
AH00526: Syntax error on line 11 of /etc/apache2/apache2.conf:
Invalid command 'LockFile', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
我的配置有什么问题导致出现错误:
- Apache 传统设置(包含所有模块?)
- LockFile 的模板错误?
【问题讨论】:
-
This 可能是相关的。设置 mod_xml2enc 或编辑模板以使用 Mutex 而不是 LockFile。
-
如果@Hamid_Nazari 指出的解决方案不起作用,请提供apache2.conf 文件的相关部分。
标签: apache ubuntu apache2 chef-infra opscenter