找不到Lighttpd服务器fastcgi PHP 404

找不到Lighttpd服务器fastcgi PHP 404,php,wordpress,fastcgi,lighttpd,Php,Wordpress,Fastcgi,Lighttpd,这是我的噩梦,我工作了2天。。 我的wordpress页面不工作,我收到“404未找到” 另外,当我尝试重新启动lighttpd服务器时,我得到了这样的结果 “(plugin.c.131)无法多次加载plugin mod_fastcgi,请修复您的配置(我们可能不会在将来的版本中接受此类配置” 这是我的lighttpd.conf文件。 server.modules = ( "mod_access", "mod_alias", "mod_compre

这是我的噩梦,我工作了2天。。 我的wordpress页面不工作,我收到“404未找到” 另外,当我尝试重新启动lighttpd服务器时,我得到了这样的结果

“(plugin.c.131)无法多次加载plugin mod_fastcgi,请修复您的配置(我们可能不会在将来的版本中接受此类配置”

这是我的lighttpd.conf文件。

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"
                 )))

您不能两次加载模块

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

$ grep -i -r -n -e "mod_fastcgi" /etc/lighttpd (where you store your config files)

您不能两次加载模块

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

$ grep -i -r -n -e "mod_fastcgi" /etc/lighttpd (where you store your config files)

您不能两次加载模块

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

$ grep -i -r -n -e "mod_fastcgi" /etc/lighttpd (where you store your config files)

您不能两次加载模块

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

$ grep -i -r -n -e "mod_fastcgi" /etc/lighttpd (where you store your config files)

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

为了能够理解该问题,您必须在lighttpd配置中启用更多日志:

debug.log-request-handling=“enable”

将在
/var/log/lighttpd/error.log
中添加许多有用的内容

因此:

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

很可能lighttpd在错误的位置查找您的文件,通过所有的重写等操作,您将能够找出错误所在。

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

为了能够理解该问题,您必须在lighttpd配置中启用更多日志:

debug.log-request-handling=“enable”

将在
/var/log/lighttpd/error.log
中添加许多有用的内容

因此:

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

很可能lighttpd在错误的位置查找您的文件,通过所有的重写等操作,您将能够找出错误所在。

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

为了能够理解该问题,您必须在lighttpd配置中启用更多日志:

debug.log-request-handling=“enable”

将在
/var/log/lighttpd/error.log
中添加许多有用的内容

因此:

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

很可能lighttpd在错误的位置查找您的文件,通过所有的重写等操作,您将能够找出错误所在。

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

为了能够理解该问题,您必须在lighttpd配置中启用更多日志:

debug.log-request-handling=“enable”

将在
/var/log/lighttpd/error.log
中添加许多有用的内容

因此:

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

最可能的情况是lighttpd在错误的位置查找您的文件,通过所有的重写等操作,您将能够找到错误的地方。

如果您启用了fastcgi.fastcgi.conf,则文件已经添加了fastcgi模块

server.modules+=(“mod\u fastcgi”)


如果启用了fastcgi,则无需将其添加到
lighttpd.conf

中。fastcgi.conf文件已经添加了fastcgi模块

server.modules+=(“mod\u fastcgi”)


如果启用了fastcgi,则无需将其添加到
lighttpd.conf

中。fastcgi.conf文件已经添加了fastcgi模块

server.modules+=(“mod\u fastcgi”)


如果启用了fastcgi,则无需将其添加到
lighttpd.conf

中。fastcgi.conf文件已经添加了fastcgi模块

server.modules+=(“mod\u fastcgi”)


您无需将其添加到
lighttpd.conf

yorum yapda ben onlarıda like'layımyorum yapda ben onlarıda like'layımyorum yapda ben onlarıda like'layımyorum yapda ben onlar da like'layım'