【问题标题】:New installation of laravel 5.2. siteurl/public/index.php gives me a 500.19 "web.config" error全新安装 laravel 5.2。 siteurl/public/index.php 给我一个 500.19 “web.config” 错误
【发布时间】:2016-04-20 23:50:31
【问题描述】:

编辑:终于明白了。必须安装 URL 重写器。现在出现新错误,但看起来 laravel 至少正在运行!

IIS 7.5

PHP 5.5.33

Laravel 5.2

错误摘要:

HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

详细的错误信息

Module  IIS Web Core
Notification    BeginRequest
Handler Not yet determined
Error Code  0x8007000d
Config Error    
Config File \\?\C:\inetpub\wwwroot\laravel-profile\public\web.config**
Requested URL   http://localhost:80/laravel-profile/public/index.php
Physical Path   C:\inetpub\wwwroot\laravel-profile\public\index.php
Logon Method    Not yet determined
Logon User  Not yet determined

配置源

   -1: 
    0: 

没有更改我的 web.config,但它是:

<configuration>
  <system.webServer>
    <rewrite>
      <rules>
        <rule name="Imported Rule 1" stopProcessing="true">
          <match url="^(.*)/$" ignoreCase="false" />
          <conditions>
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
          </conditions>
          <action type="Redirect" redirectType="Permanent" url="/{R:1}" />
        </rule>
        <rule name="Imported Rule 2" stopProcessing="true">
          <match url="^" ignoreCase="false" />
          <conditions>
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
          </conditions>
          <action type="Rewrite" url="index.php" />
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>

我唯一改变的是添加我的数据库详细信息。

编辑:.config 在处理程序映射中被阻止,但我已将其删除并重新启动 IIS,但仍然遇到同样的问题。

我不知道从这里去哪里。我最近从 5.3 升级了 php(旧笔记本电脑,我知道),但其他一切似乎都运行没有问题!

谢谢

【问题讨论】:

  • 删除配置文件即可。它对我有用

标签: php laravel iis laravel-5.2


【解决方案1】:

通过删除对我有用的 web.config。该文件适用于 .net 而非 php

【讨论】:

    猜你喜欢
    • 2016-03-31
    • 1970-01-01
    • 1970-01-01
    • 2014-07-08
    • 1970-01-01
    • 2018-08-08
    • 2014-06-04
    • 2023-03-11
    • 1970-01-01
    相关资源
    最近更新 更多