lighttpd - 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 为空。
任何帮助是极大的赞赏。
解决方案
推荐阅读
- java - 如果 id 不存在,http put 请求应该返回什么?
- java - 我正在尝试使用 url xml 解析,但看起来我一直得到一个空的 xml
- snowflake-cloud-data-platform - 在不同的列上使用 Group By And Over 子句
- c# - 创建字典
, 元组 > 用于存储来自不同文件夹的多个 json 文件名和数据 - php - 当我尝试添加数据时,页面正在刷新。mysqli_stmt_close() 期望参数 1 为 mysqli_stmt
- postgresql - 在 Kubernetes 集群中使用 pgAdmin 访问数据库
- python - 将 re 模块中的“如果匹配”逻辑与使用 groups() 结合起来?
- css - CSS 类名影响样式
- node.js - 如何使 PSQL 的辅助方法将值插入数据库
- javascript - 香草Javascrict过渡效果中的无限轮播不起作用