在我的旧操作系统上安装了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为空。
非常感谢您的帮助。