This article explains how to install PHP with Microsoft Internet Information Server (IIS) web server on Windows through either the automatic or manual installation. Note that you cannot customize the automatic installation with as many options as the manual installation (for example, no PHP extensions).
First, download PHP. If you want to use the automatic installation, go to the “Windows Binaries” and select the EXE package and then the download mirror closest to you. If you want to use the manual installation, go to “Windows Binaries” and select the ZIP package and then the download mirror closest to you.
Once you start the installation and agree to the license, the installation will display two install options: standard and advanced. The standard installation defaults to a minimum set of required options, while the advanced installation gives you more options and choices for your installation.
|Figure 1. The Server Type dialog. box.|
When you have finished downloading the PHP ZIP file, unzip the files into a folder. For this article, I unzipped the files to
Note the PHP ZIP file unzips and creates a folder based on the PHP release you downloaded. For example PHP release version 4.2.3 would unzip to the following folder
CGI or ISAPI? When using IIS, you can choose to run PHP in a CGI mode or in an ISAPI mode . While the ISAPI module performs faster than the CGI module, it hasn’t been tested in a production environment and is known to cause problems, such as system crashes (although some users report no problem). Therefore, if you intend on using PHP in a production environment, I recommend that you use the CGI mode until the ISAPI module is more stable.
In this article, I will cover installing both options. Before beginning, you must copy the php settings into the