Simple setup IIS configuration PHP debugging environment

  
                              

Windows built-in Internet Information Services (IIS) has good support for ASP, so debugging ASP pages in IIS is very convenient. But some friends' webpages use PHP programming technology. By default, IIS does not support PHP. Manually configuring IIS's PHP debugging environment is very difficult for us rookies. How can we make IIS support PHP? Here's a way to configure the PHP debugging environment in IIS in just a few simple steps.

Installing IIS Components

The author uses IIS5.1 of Windows XP as an example. First, you must install IIS components. The system is installed by default. If you don't already have it on your system, go to Control Panel→Add or Remove Programs→Add/Remove Windows Components. In the Windows Components Wizard dialog box, select the Internet Information Services (IIS) option (Figure 1). Click the "Next" button to complete the installation of the IIS component.

Figure 1 installed IIS components

configuration of PHP debugging environment

from http: //www.fyrose.com/php406.exe "PHP download the installer to the local machine, Below we use the PHP installation wizard to complete the configuration of the PHP debugging environment.


Figure 2 Select the Web server


Run the PHP package installer, pop-up Click the "Next" button in the welcome window, then click the "I Agree" button in the "License Agreement" window, then select the "Standard" installation in the Installation Type window, click the "Next" button After specifying the PHP installation directory, it is recommended to use the default installation directory. Then set the email address and the specified SMTP server in the "Mail configuration" window, and select the type of web server you are using in the "Server Type" window (eg Figure 2), because we use Windows XP system comes with IIS5.1, select "Microsoft iis4 or higher" single option, click "Next" to start the installation, and finally in the "IIS Scriptmap Node selection" window Select all the sites (Figure 3), click the "OK" button, and complete the PHP installation and configuration.


Figure 3 Select all sites
Check the PHP debugging environment configuration

Go to "Control Panel→Administrative Tools", run the Internet Information Service program, right click on "Default Web Site" and select "Properties" in the pop-up menu, then switch to the "Home Directory" tab in the pop-up Properties dialog box. Page, click the "Configure" button in the application settings bar, pop-up "Application Configuration" dialog box, in the "Map" tab, check the application mapping list box for the option with the extension ".ph p" (Figure 4), if it exists, it means that the PHP installation configuration is successful.


Figure 4 View program mapping

If this option is not found, you can also add it manually. In the application configuration Click the "Add" button in the dialog box, pop up the "Add /Edit Application Extension Mapping" dialog box (Figure 5), enter the "php.exe" program path in the "Executable" field, "Extension" Enter ".PHP", other options use the default settings, and finally click the "OK" button.


Figure 5 Manually add mapping

This completes the configuration of the PHP debugging environment , you can debug PHP files in IIS later.

Copyright © Windows knowledge All Rights Reserved