Simple Setup IIS configuration PHP debugging Environment _php Tutorial

Source: Internet
Author: User
Tags configuration php php debug php programming
The built-in Internet Information Service (IIS) for Windows systems has good support for ASP, so it is convenient to debug ASP Web pages in IIS. But some friends of the Web using PHP programming technology, by default, IIS is not support PHP, manual configuration of IIS PHP debugging Environment for US novice is very difficult, how to let IIS support PHP? Here's a way to configure the PHP debugging environment in IIS in just a few simple steps.

   Install IIS Components

The author takes the Windows XP system IIS5.1 as an example, must first install the IIS component, the system installs by default. If you are not on your system, go to control Panel → add or Remove Programs → add/Remove Windows components, select the Internet Information Services (IIS) option (1) In the Windows Components Wizard dialog box, and click the Next button to complete the installation of the IIS components.



Figure 1 Installing the IIS Components

   Configuring the PHP Debugging Environment

To download the PHP installer to the local machine from http://Www.fyrose.com/php406.exe, we will use the PHP Installation Wizard to complete the configuration of the PHP debugging environment.



Figure 2 Selecting a Web server


Run the PHP Package installer, click the "Next" button in the pop-up Welcome window, click the "I Agree" button in the "License Agreement" window, then select "Standard" installation in the installation type (Installation type) window and click " Next button, specify the installation directory for PHP, and we recommend that you use the default installation directory. Then set the mail address and specify the SMTP server in the Mail Configuration window, select the type of Web server you are using (2) in the service type (server type) window, as we use the 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 selected all the Sites (3), click the "OK" button, The installation and configuration of PHP was completed.



Figure 3 Selecting All Sites

  Check the PHP debug environment configuration

Go to "control Panel → Administrative Tools", run Internet Information Service program, right click "Default Web Site" in the pop-up menu to select "Properties", then in the Pop-up Properties dialog box to switch to the "Home Directory" tab, click the "Configure" button in the application settings bar, pop "application Configuration" dialog box, on the Mappings tab, see if there is an option (4) with an extension of ". ph P" in the Application Map list box, which indicates that the PHP installation configuration was successful.



Figure 4 Viewing program mappings

If this option is not found, you can add it manually. In the Application Configuration dialog box, click on the "Add" button to pop up the "Add/Edit Application Extension Mapping" dialog (5), enter "Php.exe" program path in the "Executable" field, "enter" in "extension". PHP ", the other options use the default settings, and then click the" OK "button.



Figure 5 Adding mappings manually

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

http://www.bkjia.com/PHPjc/313814.html www.bkjia.com true http://www.bkjia.com/PHPjc/313814.html techarticle The built-in Internet Information Service (IIS) for Windows systems has good support for ASP, so it is convenient to debug ASP Web pages in IIS. But some friends of the Web using PHP programming technology, the default ...

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