This document briefly describes how to start using the PHP runtime library with Microsoft IIS 7.0 or later.
In this document:
Note
Make sure that you DO NOT select the “WebDAV Publishing” component during configuration.
php.ini
file in the directory where you have installed PHP.extension_dir = "ext"
extension=php_soap.dll
extension=php_openssl.dll
Install the “URL Rewrite” Module from IIS Application Gallery if you use IIS 8 or IIS 8.5 or download and install it manually from http://www.iis.net/downloads/microsoft/url-rewrite
Create an endpoint and configure URL mapping for each APS Application API.
You may use the following example of Web.config which shows how to configure the redirection from service URLs “/applications” and “/organizations” to “applications.php” and “organizations.php” respectively:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="APS Application API" stopProcessing="true">
<match url="([_0-9a-zA-Z\-]+)(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="{R:1}" pattern="^applications$" />
<add input="{R:1}" pattern="^organizations$" />
</conditions>
<action type="Rewrite" url="{R:1}.php{R:2}" logRewrittenUrl="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>