Seamless: IIS is compatible with PHP

Source: Internet
Author: User
Tags iis mail php file php debug php programming window
The Internet Information Service (IIS) built into the IIS system has good support for ASPs, so it is convenient to debug ASP Web pages in IIS. But some friends of the Web page using PHP programming technology, by default, IIS is not supported by PHP development, this article will give readers how to make IIS and PHP development seamless cooperation.

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

Download the PHP installer from "http://www.php.net/" to the local machine, we will use the PHP Installation Wizard to complete the configuration of the PHP debugging environment.

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 and specify the SMTP server in the Mail Configuration window, select the type of Web server you use in the service type (server type) window (Figure 2), Because we use the IIS5.1 from the Windows XP system, select the "Microsoft iis4 or higher" option, click "Next" to start the installation, and finally in "IIS scriptmap Node Selection" Window Select all of the sites (such as Figure 3), click the "OK" button, completed the installation and configuration of PHP.

Figure 2 Select the Web server, IIS is not supported PHP, the manual configuration of IIS debugging Environment for our 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.

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 the Application Mappings list box has an option with the extension. PHP (Figure 4), or if it exists, to indicate 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 Add a map manually this completes the configuration of the PHP debugging environment, and you can then debug the php file in IIS.

  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.