AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 544673
Accepted
Alan
Alan
Asked: 2013-10-09 10:03:11 +0800 CST2013-10-09 10:03:11 +0800 CST 2013-10-09 10:03:11 +0800 CST

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

  • 772

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

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)

配置文件是:/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"
    ))
)

为什么指令不被识别?即使我将其设置为零,我也会收到错误消息。

lighttpd
  • 1 1 个回答
  • 1690 Views

1 个回答

  • Voted
  1. Best Answer
    Alan
    2013-10-09T10:24:38+08:002013-10-09T10:24:38+08:00

    我花了最后一个小时,终于跑到这个线程: 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 了我所有的配置,果然,还有另一个带有 fastcgi.debug 指令的文件。当我删除 dup 条目时,lighttpd 启动了。

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

    • 4

相关问题

  • 在 Apache、LightTPD 和 Nginx Web 服务器上提供 PHP 5.x 应用程序的现状?

  • 如何在重新启动时在 /tmp 中重新创建目录?

  • 为这个堆栈推荐书籍/资源:linux、lighttpd、postgres、webpy

  • 哪个最适合 Django?Lighttpd 还是 Nginx?或者也许是别的什么?[关闭]

  • 降低 lighttpd 响应时间

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve