How to Install the Microsoft Web Platform for PHP
by Tali Smith
Microsoft embraces hosting PHP applications on the Windows® operating system, both by building enabling technologies and by working with the PHP community to ensure that popular PHP applications run performantly on the Windows operating system. Customers appreciate the convenience and familiarity of the Windows operating system to run PHP applications. The capabilities built into Windows Server® 2008, such as Internet Information Services 7 (IIS 7) and above and FastCGI, make seamless operation of PHP applications possible. With the advent of the SQL Server Connector for PHP, users can add Microsoft® SQL Server® 2008 to the stack if they desire, providing a top-to-bottom solution for PHP applications based on Microsoft® technology.
The Microsoft® Web Platform provides advantages for PHP hosters, Web farm managers, self-hosters, server administrators, PHP application developers, and many others. PHP hosters can refer to the Shared Hosting Guidance Content Map for a wealth of articles and videos, including Shared Hoster Configuration and Configuring a Web Farm Using IIS Shared Configuration.
To host PHP applications on the Microsoft® Web Platform, you must first set up the platform component.
Install the Operating System
At the base of the Microsoft Web Platform is Windows Server 2008, Windows Server® 2008 R2, or another Windows Server® operating system version.
Use Microsoft Web PI to Install the Microsoft Web Platform
The easiest way to install the rest of the Microsoft Web Platform is by using the Microsoft® Web Platform Installer (Web PI), a free tool that makes it easy to get the latest components of the Microsoft Web Platform, including Internet Information Services (IIS), Microsoft® SQL Server® Express, the Microsoft® .NET Framework, and Microsoft® Visual Web Developer. Web PI also makes it easy to install and run the most popular free Web applications for blogging, content management, and more with the built-in Windows Web Application Gallery.
Install the Microsoft Web Platform Manually
It is also possible to install IIS, PHP, and a database manually.
Install and configure IIS. IIS is the Web server role in the Windows Server operating systems. The following articles provide guidance in installing IIS:
Install and configure PHP.
The following articles provide guidance on installing PHP:
Enable FastCGI support. FastCGI is an open protocol supported by many open-source application frameworks that otherwise may not support stable and high-performance native integration with IIS. The following articles provide guidance in enabling FastCGI:
Install a database. You can use either MySQL or SQL Server in the Microsoft Web Platform.
You are now ready to configure and optimize the Microsoft Web Platform.