This step by step guide describes how to configure Windows XP with IIS 5.1 to run Phalanger applications.
First, you’ll need the latest Phalanger release:
Phalanger installer doesn’t have any known issues on Windows XP.
First you’ll need to open Internet Information Services (IIS) Manager. If you want placed your PHP application to the IIS root directory (C:\inetpub\wwwroot) you can skip the following part of the tutorial. Otherwise you’ll need to create virtual directory first.
If you want to create virtual directory, right click on the “Default Web Site” (or any other site where you want to add the directory) and select “New” - “Virtual Directory...”. The wizard will open, skip the welcome screen and on the second screen enter the name of the application.
On the third screen, select directory where your PHP application files are located.
The next screen asks about security - Phalanger behaves as a script, so check the “Run scripts” checkbox (this is important, because it is unchecked by default!).
And that’s all. You should see newly created application as a directory in the IIS manager. Now you need to configure IIS to forward PHP file requests to Phalanger...
After you created virtual directory, or copied your PHP application to the C:\inetpub\wwwroot directory, you can right click on it in the IIS Manager and select “Properties”. In the properties windows, click on the “Create” button. This creates application which you can configure.
After creating application, click on the “Configuration...” button. The following window appears:
In the application configuration, you need to add mapping for the PHP extension. Click on the “Add” button...
In the “Add extension mapping” dialog, enter “.php” as an extension and path to the aspnet_isapi.dll as an executable. On typical Windows installation, you can find this file in the C:\Windows\Microsoft.NET\Framework\v2.0.50727 directory. If the OK button doesn’t enable click into the textbox with the path.
Finally, we’ll add index.php to the list of default documents, so that IIS redirects requests to start page of PHP application. This can be done in the “Default document” configuration:
And that’s all
. You may need to add web.config file with some additional configuration, depending on the application you’re installing. You can find more information in the applications running on Phalanger section.