我在我的数字海洋帐户中使用 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 的模板错误?