====== Phalanger on Windows XP====== This step by step guide describes how to configure Windows XP with IIS 5.1 to run Phalanger applications. ===== Installation ===== First, you'll need the latest Phalanger release: * [[http://www.codeplex.com/Phalanger/Release/ProjectReleases.aspx|Phalanger Releases page]] at CodePlex Phalanger installer doesn't have any known issues on Windows XP. ===== Configuration ===== 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. {{ wXP:step1.png |Internet Information Services}} ==== Creating virtual directory ==== 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. {{ wXP:step2.png |Wizard - Step 1}} On the third screen, select directory where your PHP application files are located. {{ wXP:step3.png |Wizard - Step 2}} 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!). {{ wXP:step4.png |Wizard - Step 3}} 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... ==== Configuring application ==== 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. {{ wXP:step5.png |Application properties}} After creating application, click on the "Configuration..." button. The following window appears: {{ wXP:step6.png |Application configuration}} In the application configuration, you need to add mapping for the PHP extension. Click on the "Add" button... {{ wXP:step7.png |Add extension mapping}} 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: {{ wXP:step8.png |Default document}} 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 [[apps|applications running on Phalanger]] section.