I am having problems installing Drupal 7.0. However I think it is an IIS problem.
When I execute the install program: http:\\myweb\Drupal-7.0\install.php I get an error 500.19 Internal Server error.
'The requested page cannot be accessed because the related configuration data for the page is invalid'
The detail of the error are:
Detailed Error information:
Module: IIS Web Core
Notification: Begin Request
Handler: Not yet determined
Error Code: 0x8007000d
Requested URL:
http://localhost/myweb/drupal-7.0/install.php
Physical path: c:\inetpub\wwwroot\myweb\drupal-7.0\install.php
Login Method: Not yet determined
Login User: Not yet determined
Config Error
Config File: \\?
\C:\inetpub\wwwroot\myweb\drupal-7.0\web.config
Config Source:
-1:
0:
Drupal has its own web.config file (listed below). If I edit it to introduce a deliberate error (mis-matching tags) the two lines in error and an explanation of the error is shown under the 'Config source' heading.
If I comment out everything except the configuration and system.webserver tags I get the same error (Config source -1: 0:).
Editing out more, or deleting this web.config file I get the error 404 Not found.
I am running IIs7 on Windows 7 Ultimate and granted full permission to the inetpub folder according to the post by Thomad on http://forums.iis.net/t/1147354.aspx.
The error message suggests that the error is on lines -1 and 0. I have run the drupal web.config file through an XML verifier/syntax checker and it checks out ok. There is nothing before the <?xml tag, and nothing after the last closing tag.
Can you help please!
Web.config: (in the c:\inetpub\wwwroot\myweb\Drupal-7.0\ folder)
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<!-- Don't show directory listings for URLs which map to a directory. -->
<directoryBrowse enabled="false" />
<rewrite>
<rules>
<rule name="Protect files and directories from prying eyes" stopProcessing="true">
<match url="\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$" />
<action type="CustomResponse" statusCode="403" subStatusCode="0" statusReason="Forbidden" statusDescription="Access is forbidden." />
</rule>
<rule name="Force simple error message for requests for non-existent favicon.ico" stopProcessing="true">
<match url="favicon\.ico" />
<action type="CustomResponse" statusCode="404" subStatusCode="1" statusReason="File Not Found" statusDescription="The requested file favicon.ico was not found" />
</rule>
<!-- Rewrite URLs of the form 'x' to the form 'index.php?q=x'. -->
<rule name="Short URLs" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{URL}" pattern="^/favicon.ico$" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?q={R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
<httpErrors>
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" prefixLanguageFilePath="" path="/index.php" responseMode="ExecuteURL" />
</httpErrors>
<defaultDocument>
<!-- Set the default document -->
<files>
<remove value="index.php" />
<add value="index.php" />
</files>
</defaultDocument>
</system.webServer>
</configuration>