Install PHP with Microsoft Web Platform Installer 2.0

Posted: Mar 18, 2009    

Average Rating

Tags
FastCGI
PHP
WebPI

While the task of setting up PHP on IIS was not a difficult one, it anyway required a lot of manual installation and configuration steps. With the PHP 5.2.9-1 release the PHP development community has put a lot of improvements to the PHP installer to make it easy to setup PHP on IIS 5.1, IIS 6.0 and IIS 7.0. The latest PHP installer can be downloaded from the PHP community site.

Now, with the release of Microsoft Web Platform Installer 2.0 Beta (Web PI), the task of enabling PHP on Windows OS has become the easiest it has ever been. Here are the three simple steps you need to follow:

  1. Go to http://php.iis.net/
  2. Click on the big blue button “Click to Install PHP on IIS”.
    PHP on IIS7: The Official Microsoft IIS site
    This will prompt you to install Web Platform Installer 2.0 Beta if you do not have it already.
  3. After Web Platform Installer is launched the PHP option will be automatically selected. Click Install button to start the installation.
    PHP in WebPI
    Note: on a very first run of Web PI, the PHP option might be not selected automatically. In that case you can manually select it under: “Web Platform”/”Frameworks and Runtime” category.

The nice thing about this installation process is that Web PI knows about all the dependencies for PHP and it will download and install all the required components prior to installing PHP itself. For example, if you are installing PHP on Windows XP with IIS 5.1, then WebPI will download and install FastCGI extension. If PHP is being installed on Windows Server 2008, then Web PI will enable FastCGI module, which is built-in to IIS 7.

Finally Web PI will download and run the installer for non-thread-safe build of PHP 5.2.9-1 from http://windows/php/downloads/. PHP installer will perform all the necessary configurations steps in PHP, IIS and FastCGI. So by the end of the installation process you will have the IIS and PHP ready to run your PHP applications on Windows.

View the original post

Comments

Microsoft Communities