首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >没有找到Lighttpd服务器快速not 404

问没有找到Lighttpd服务器快速not 404
EN

Stack Overflow用户
提问于 2015-02-14 01:33:19
回答 3查看 2.1K关注 0票数 0

这是我的噩梦,我工作了两天。我的wordpress页面不工作,我得到了"404没有找到“,而且当我试图重新启动lighttpd服务器时,我得到了这个

"(plugin.c.131)不能加载插件mod_fastcgi不止一次,请修复您的配置(我们可能不会接受这样的信任在未来的版本“”

this is my lighttpd.conf file.

代码语言:javascript
复制
server.modules = (
        "mod_access",
        "mod_alias",
        "mod_compress",
        "mod_redirect",
        "mod_rewrite",
        "mod_accesslog",
        "mod_fastcgi",
)
server.tag = "Private Server"
server.max-fds = 8192
server.max-connections = 4096
server.document-root        = "/var/www"
server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
server.errorlog             = "/var/log/lighttpd/error.log"
accesslog.filename      = "/var/log/lighttpd/access.log"
server.pid-file             = "/var/run/lighttpd.pid"
server.username             = "www-data"
server.groupname            = "www-data"
server.port                 = 80

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

compress.cache-dir          = "/var/cache/lighttpd/compress/"
compress.filetype           = ( "application/javascript", "application/x-javascript", "text/x-js", "text/css", "text/xml", "text/javascript", "text/html", "text/plain"$
# default listening port for IPv6 falls back to the IPv4 port
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"
include "test.com.conf"
fastcgi.server = ( ".php" => ((
                     "bin-path" => "/usr/bin/php5-cgi",
                     "socket" => "/var/run/lighttpd/php-fastcgi.socket",
                "max-procs" => 5,
                "bin-environment" => (
                        "PHP_FCGI_CHILDREN" => "40",
                        "PHP_FCGI_MAX_REQUESTS" => "10000"
                ),
                "bin-copy-environment" => (
                        "PATH", "SHELL", "USER"
                ),
                "broken-scriptfilename" => "enable"
                 )))
EN

回答 3

Stack Overflow用户

发布于 2018-01-05 08:54:29

如果您启用了fastcgi。fastcgi.conf文件已经添加了快速adds模块

server.modules += ( "mod_fastcgi" )

您不需要将它添加到lighttpd.conf

票数 3
EN

Stack Overflow用户

发布于 2015-03-02 12:35:53

您不能加载模块两次。

使用以下命令查找已加载模块两次的位置。

代码语言:javascript
复制
$ grep -i -r -n -e "mod_fastcgi" /etc/lighttpd (where you store your config files)
票数 0
EN

Stack Overflow用户

发布于 2017-08-24 14:13:06

加载两次的模块不是很好(应该修复),但是它不会触发当前的问题。

要理解这个问题,您必须在lighttpd配置中启用更多的日志:

debug.log-request-handling = "enable"

将在/var/log/lighttpd/error.log中添加许多有用的东西。

因此:

  • 在配置中添加新参数
  • 重启lighttpd
  • tail -f /var/log/lighttpd/error.log
  • 加载页面并查看tail的输出

最有可能的是,lighttpd是在错误的地方寻找您的文件,通过重写等等,您将能够找到您的错误所在。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28511469

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档