当使用fastcgi.debug指令时,Lighttpd不会启动

我在Ubuntu 12.04 LTS上运行lighttpd / 1.4.28(ssl)。 一切正常,我正在尝试做一些性能调整。 我想为fastcgi模块启用debugging模式,但是当我将fastcgi.debug指令添加到我的conf文件时,lighttpd扼杀了“parsing器失败”错误:

2013-10-08 10:56:23: (configfile.c.912) source: /etc/lighttpd/conf-enabled/15-fastcgi-php.conf line: 1 pos: 15 parser failed somehow near here: (EOL) 

configuration文件是:/etc/lighttpd/conf-enabled/15-fastcgi-php.conf

 fastcgi.debug=1 fastcgi.server += ( ".php" => (( "bin-path" => "/usr/bin/php-cgi", "socket" => "/tmp/php.socket", "max-procs" => 1, # runs max-procs bin-path controllers plus (max-procs * PHP_FCGI_CHILDREN) workers "idle-timeout" => 20, "bin-environment" => ( "PHP_FCGI_CHILDREN" => "10", # PHP_FCGI_MAX_REQUESTS: The number of requests that a single worker handles before it kills itself. "PHP_FCGI_MAX_REQUESTS" => "10000" ), "bin-copy-environment" => ( "PATH", "SHELL", "USER" ), "broken-scriptfilename" => "enable", "check-local" => "disable" )) ) 

为什么这个指令不被认可? 即使将其设置为零,我也会得到这个错误。

我已经花了最后一个小时,最后跑过这个线程: http : //redmine.lighttpd.net/boards/2/topics/2265

在线程的最后,OP提到从控制台交互式地运行lighttpd:

 sudo lighttpd -Df /etc/lighttpd/lighttpd.conf 

当我这样做,它打印出来的消息:

 Duplicate config variable in conditional 0 global: fastcgi.debug 

所以我grep'd所有我的configuration,果然,有另一个文件与fastcgi.debug指令。 当我删除dup条目,lighttpd开始。

lighttpd应该将该消息写入错误日志!