Configure the PHP debugging environment in 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 a method. it takes only a few steps to configure PHP in IIS and tune the built-in Internet Information Service (IIS) in Windows to provide excellent support for asp, therefore, 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.



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.



Select 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.



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.



View 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.



Manually add ing

This completes the configuration of the PHP debugging environment, and then you can 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.