New installation of laravel 5.2. siteurl/public/index.php gives me a 500.19 "web.config" error


EDIT: Finally got it. Had to install URL Rewriter. Getting a new error now but looks like laravel is running at least!

IIS 7.5

PHP 5.5.33

Laravel 5.2

Error Summary:

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

Detailed Error Information

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

Config Source


Haven't changed my web.config, but here it is:

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

The only thing I've changed was adding my database details.

EDIT: .config was blocked in handler mappings but I've removed that and restarted IIS and still having the same issue.

I'm not sure where to go from here. I've recently upgraded php from 5.3 (old laptop, I know), but everything else seems to be running without issue!


asked on Stack Overflow Apr 20, 2016 by RachFee • edited Apr 21, 2016 by Bharatesh

1 Answer


By deleting the web.config it worked for me . That file is for .net not for php

answered on Stack Overflow Dec 28, 2019 by Abhed Indulkar

User contributions licensed under CC BY-SA 3.0