如何解决HTTP错误500.0-IIS10上的内部服务器错误?

问题描述 投票:0回答:1

我已经玩了一段时间了,但是我没有在网上找到任何类似的问题。我正在使用Windows 10 Home 1909和IIS-10。这是我的应用程序的结构:

目录:

["C:\inetpub\wwwroot\website1"-(包含文件:iisstart.htmiisstart.pngindex.htmlindex.phpweb.config)]


web.config:] >>

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <directoryBrowse enabled="true" />

<!--I have also tried with and without these
            <requestFiltering>
                <hiddenSegments>
                    <remove segment="App_GlobalResources" />
                    <remove segment="App_code" />
                    <remove segment="bin" />
                    <remove segment="App_Browsers" />
                    <remove segment="App_Data" />
                    <remove segment="App_WebReferences" />
                    <remove segment="App_LocalResources" />
                </hiddenSegments>
            </requestFiltering>
-->
    </system.webServer>
</configuration>

"website1.com/index.html"-效果很好

["website1.com"

"website1.com/index.php"将出现以下错误:

Demo 1

IIS10(CONNECTION website1.com):

  • 默认文档:index.phpDefault.htmDefault.aspindex.htmindex.htmliisstart.htmldefault.aspx的条目类型为INHERITED(请注意,在DEKSTOP-下...存在相同的文件但条目类型为“ LOCAL”)
  • PERMISSION(IIS_IUSRS):拥有对目录dir的所有权限:"C:\xampp\php_7_2_31"
  • FastCgiModule是使用以下教程安装的:逐步link1link2
  • 应用程序池:
  • Demo 2

CMD :(已安装Microsoft Visual C ++ 2015 Redistibutable(x64)-14.0.23026)

Demo 3


Windows功能:

]

Demo 4


现在是有趣的部分(我不知道如何进行)。>>

好像未触发.NET,因此FastCGI给出了错误。我尝试在Windows功能中添加以下内容:

a] .NET Extensibility 3.5ASP NET 3.5-重新启动我的机器并对其进行了尝试,它将HTTP错误更改为500.24

b).NET Extensibility 4.8ASP NET 4.8-重新启动我的机器并对其进行了尝试,它将HTTP错误更改为500.24

c).NET Extensibility 3.5ASP NET 3.5.NET Extensibility 4.8ASP NET 4.8-重新启动我的机器并对其进行了尝试,并将HTTP错误更改为500.24

[如果您知道如何解决此问题,请告诉我。我已经尝试了所有教程,论坛,但找不到任何东西。

我已经玩了一段时间了,但是我没有在网上找到任何类似的问题。我正在使用Windows 10 Home 1909和IIS-10。这是我的应用程序的结构:目录:“ C:\ inetpub \ ...

.net xml internal-server-error iis-10 http-status-code-500
1个回答
1
投票

您的php.exe文件夹路径之间是否有空格?如果php_7_2_31之间有空格,请先将其删除。

看起来iis无法从camp文件夹中读取PHP的配置。要解决该问题,只需尝试从Web平台安装程序安装PHP。易于下载和使用。安装后,您无需在iis中进行额外的配置。

© www.soinside.com 2019 - 2024. All rights reserved.