答案 0 :(得分:10)
您的网站正在投放500 Internal Server Error
。
这可能是由许多因素引起的,例如:
修改强>
正如您所强调的那样,这是一个许可问题。您需要确保您的文件可由Web服务器用户
执行有关正确文件权限的一些指导,请参阅以下文章。 https://www.digitalocean.com/community/questions/proper-permissions-for-web-server-s-directory
答案 1 :(得分:1)
我有“(...)无法处理此请求.http错误500 ”并发现它来自本地正在运行的 require_once 一台Windows机器,反斜杠(\)作为目录的分隔符但是当我上传到我的服务器时它停止工作。我把它更改为正斜杠(/),现在没问题。
server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
"mod_accesslog",
"mod_fastcgi",
"mod_rewrite",
"mod_auth")
server.document-root = "/usr/share/phpmyadmin"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
server.port = 80
alias.url = ( "/phpmyadmin/" => "/usr/share/phpmyadmin/" )
fastcgi.debug = 1
fastcgi.server = (
".c" => (
"echo.fcgi.handler" => (
"socket" => "/tmp/cpp.fcgi.socket",
"check-local" => "disable",
"bin-path" => "/home/shlomo/cpp/echo.fcgi",
"max-procs" => 1
)
)
)
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" )
# 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"
答案 2 :(得分:0)
对未来的人们看这个我的看法:
如果您正在使用:<?
而不是<?php
,也可能会发生这种情况。
答案 3 :(得分:-1)
我发现这是因为在登录范围中添加了一个新的范围变量
答案 4 :(得分:-1)
您是否已加入声明include ("fileName.php");
?
您确定该文件位于正确的目录中吗?