首页 > 解决方案 > Dokuwiki + Lighttpd - Lighttpd 无法启动,未找到包含文件

问题描述

在我的旧操作系统上安装了一个 DokuWiki,在重新安装它以修复驱动程序问题后,我无法再启动它了。尝试运行命令sudo lighttpd -f wiki.conf会产生以下结果:

2019-11-02 02:49:20: (configfile.c.1232) include file not found:  conf-enabled/10-fastcgi.conf 
2019-11-02 02:49:20: (configfile.c.1154) source: /usr/share/lighttpd/include-conf-enabled.pl line: 2 pos: 8 parser failed somehow near here: (EOL) 
2019-11-02 02:49:20: (configfile.c.1154) source: wiki.conf line: 39 pos: 1 parser failed somehow near here: (EOL)

我已经验证它正在谈论的文件存在。其内容如下:

# /usr/share/doc/lighttpd/fastcgi.txt.gz
# http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions#mod_fastcgi-fastcgi

server.modules += ( "mod_fastcgi" )

wiki.conf 如下:

server.modules = (
    "mod_access",
    "mod_alias",
    "mod_compress",
    "mod_redirect",
    "mod_fastcgi",
    "mod_setenv"
)

server.document-root        = "/home/void/wiki/fey/doku"
server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
server.errorlog             = "/home/void/wiki/fey/error.log"
server.pid-file             = "/var/run/lighttpd.pid"
server.username             = "www-data"
server.groupname            = "www-data"
server.port                 = 244


index-file.names            = ( "index.php", "index.html", "index.lighttpd.html" )
url.access-deny             = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

compress.cache-dir          = "/var/cache/lighttpd/compress/"
compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )

fastcgi.server = (".php" => ((
    "bin-path" => "/usr/bin/php-cgi",
    "socket" => "/tmp/php.socket"
)))
cgi.assign = (".php" => "/usr/bin/php")

setenv.add-response-header = ("Access-Control-Allow-Origin"=> "*")

# default listening port for IPv6 falls back to the IPv4 port
## Use ipv6 if available
#include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"

error.log 为空。

任何帮助是极大的赞赏。

标签: lighttpddokuwiki

解决方案


推荐阅读