【发布时间】: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