The Internet Information Services (IIS) built into Windows systems have good support for ASPs, so it is convenient to debug ASP Web pages in IIS. But some friends of the Web page with PHP programming technology, by default, IIS is not support PHP, manual configuration of IIS debugging Environment for US rookie is very difficult, how can we let IIS support PHP? Here's a way to configure the PHP debugging environment in IIS in a few simple steps.
Installing the IIS Components
The author takes the IIS5.1 of Windows XP system as an example, first must install the IIS component, the system is installed by default. If you don't have it in your system, go to control Panel → add or Remove Programs → add/Remove Windows components, select the Internet Information Services (IIS) option in the Windows Components Wizard dialog box (Figure 1), and click Next button to complete the installation of the IIS component.
Figure 1 Installing the IIS Component
Configuring the PHP Debugging Environment
From
http://Www.fyrose.com/php406.exe"Download the PHP installer to the local machine, we will use the PHP Installation Wizard to complete the configuration of the PHP debugging environment."
Figure 2 Selecting a Web server
To run the installer for the PHP package, click the "Next" button in the pop-up Welcome window, click the "I Agree" button in the License Agreement window, and then select "Standard (Standard)" Installation in the Installation Type window, and click "Installation" Next button, specify the installation directory for PHP, and we recommend that you use the default installation directory. Next, set the mail address in the Mail Configuration window and specify the SMTP server, select the type of Web server you use in the service type (server type) window (Figure 2) because we use Windows XP system with the IIS5.1, select the "Microsoft IIS4 or higher" single option, click "Next" after the installation, and finally in the "IIS scriptmap Node Selection" window Select all the sites (see Figure 3), click the "OK" button , you complete the installation and configuration of PHP.
Figure 3 Selecting All Sites
Check the PHP debug environment configuration
Go to Control Panel → admin tool, run the Internet Information Service program, right-click the "Default Web Site" In the pop-up menu select "Properties", and then in the pop-up Properties dialog box to switch to the "Home Directory" tab, click on the application settings bar "Configuration" button, pop-up "application Configuration" dialog box, in the Mappings tab page, to see if an option with the extension ". ph P" is available in the Application Mapping list box (Figure 4), which means that the PHP installation configuration was successful.
Figure 4 View Program Mappings
If you do not find this option, you can also add it manually. Click the Add button in the Application Configuration dialog box, pop the Add/Edit Application Extension Mapping dialog box (Figure 5), enter the "Php.exe" program path in the "Executable" field, and enter in "extension". PHP, the other options use the default settings, and finally click the "OK" button.
Figure 5 Adding mappings manually
This completes the configuration of the PHP debugging environment and can then debug the php file in IIS.