How to configure the PHP debugging environment for IIS

Source: Internet
Author: User

The built-in Internet Information Service (IIS) in Windows has good support for ASP, so it is very convenient to debug ASP Web pages in IIS. However, some friends use PHP programming technology on their web pages. By default, IIS does not support PHP. It is very difficult for us cainiao to manually configure the PHP debugging environment for IIS, so how can we make IIS support PHP? The following describes how to configure the PHP debugging environment in IIS in just a few steps.

Install IIS Components

Taking Windows XP IIS5.1 as an example, the IIS component must be installed first. The system is installed by default. If your system does not exist, go to "Control Panel> add or delete Programs> Add/delete Windows Components ", in the "Windows component wizard" dialog box, select "Internet Information Service (IIS)" option (1) and click "Next" to complete IIS component installation.

Figure 1 install IIS Components

Configure the PHP debugging environment

Download the PHP installation program from "http: // www.fyrose.com/php406.exe" to the local machine. Next we will use the PHP installation wizard to complete the configuration of the PHP debugging environment.

Figure 2 select a Web Server

Run the PHP package installer, click "Next" in the pop-up welcome window, and then click "I Agree" in the "License Agreement" window, select "Standard" in the Installation Type window, and click "Next" to specify the PHP Installation directory. We recommend that you use the default Installation directory. In the "Mail configuration" window, set the email address and the specified SMTP Server. In the "Server Type" window, select the Type of the Web Server you are using (2 ), because we use IIS5.1, which comes with Windows XP, select the "Microsoft iis4 or higher" option and click "Next" to start installation, finally, select all the sites (3) in the "IIS Scriptmap Node selection" window and click "OK" to complete the PHP installation and configuration.

Figure 3 select all sites
Check PHP debugging environment Configuration

Go to "Control Panel> Administrative Tools", run the Internet Information Service Program, right-click "default website", and select "properties" from the menu displayed ", switch to the "main directory" tab in the pop-up Property dialog box, and click "configuration" in the application settings column. The "application configuration" dialog box is displayed. On the "ing" tab, check whether the application ing list box has the extension ". ph p "option (4). If yes, the PHP installation configuration is successful.

Figure 4 program ing


If this option is not found, you can also manually add it. In the application configuration dialog box, click "add" to bring up the "Add/edit application extended name " (( 5]. Enter the php.exe program path in the" executable file "field, and enter". PHP ". Use the default settings for other options, and click" OK.

Figure 5 manually add a ing


This completes the configuration of the PHP debugging environment, and then you can debug the PHP file in IIS.

 

Related Article

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.