新安装的laravel 5.2。 siteurl / public / index.php给了我一个500.19" web.config"错误

时间:2016-04-20 23:50:32

标签: php laravel iis laravel-5.2

编辑:终于明白了。不得不安装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: 

Haven没有改变我的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,但其他一切似乎都没有问题!

由于

1 个答案:

答案 0 :(得分:0)

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