Home > Backend Development > PHP Tutorial > Simply set up IIS to configure PHP debugging environment_PHP tutorial

Simply set up IIS to configure PHP debugging environment_PHP tutorial

WBOY
Release: 2016-07-21 16:11:49
Original
819 people have browsed it

The built-in Internet Information Services (IIS) of Windows system has good support for ASP, so it is very convenient to debug ASP web pages in IIS. But some friends’ web pages use PHP programming technology. By default, IIS does not support PHP. Manually configuring the PHP debugging environment of IIS is very difficult for us novices. So how can I make IIS support PHP? Here is a method to configure the PHP debugging environment in IIS in just a few simple steps.

 Install IIS components

I take IIS5.1 of Windows XP system as an example. First, IIS components must be installed. The system is installed by default. If it is not in your system yet, go to "Control Panel → Add or Remove Programs → Add/Remove Windows Components" and select the "Internet Information Services (IIS)" option in the "Windows Component Wizard" dialog box (Figure 1) , click the "Next" button to complete the installation of IIS components.

Simply set up IIS to configure PHP debugging environment_PHP tutorial


Figure 1 Install IIS components

 Configure PHP debugging environment

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

Simply set up IIS to configure PHP debugging environment_PHP tutorial


Figure 2 Select the Web server


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

Simply set up IIS to configure PHP debugging environment_PHP tutorial



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 "Default Website" and select "Properties" in the pop-up menu, then switch to "Home Directory" in the pop-up properties dialog box "tab, click the "Configure" button in the application settings bar, the "Application Configuration" dialog box will pop up, in the "Mapping" tab, check whether there is an extension with ".ph p" in the application mapping list box option (as shown in Figure 4), if it exists, it means that the PHP installation and configuration is successful.

Simply set up IIS to configure PHP debugging environment_PHP tutorial



Figure 4 View program mapping

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

Simply set up IIS to configure PHP debugging environment_PHP tutorial



Figure 5 Manually add mapping

This completes the configuration of the PHP debugging environment. You can now debug PHP files in IIS.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/313814.htmlTechArticleThe built-in Internet Information Services (IIS) of Windows system has good support for ASP, so debugging ASP web pages in IIS is very convenient. But some friends’ web pages use PHP programming technology, and the default...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template