iis7.5 Installation configuration PHP environment, iis7.5 installation configuration php_php Tutorial

Source: Internet
Author: User
Tags configuration php

iis7.5 Installation configuration PHP environment, iis7.5 installation configuration PHP


Objective

iis7.5 is installed in the Win7, win8 in the Web server, Win2003, Win2000 Web server using iis6.0, because Win7, win8 system compared to Win2003, Win2000 with the change of the new leather surface of the difference, Therefore, the configuration of the iis7.5 must also be familiar with a double. But these are operational things, like the first contact with iis6.0, the operation several times slowly familiar.

Now I need the Web server to run the PHP program, so I want to configure the PHP environment. At first thought is easier, because in the iis6.0 configured countless times, the star outside the PHP automatic installation 30 seconds easy to fix, but when opened iis7.5, only then found that the original iis6.0 familiar things most in iis7.5 found, had to grope for a turn. This article, combined with my own practical experience, describes how to install PHP in iis7.5.

1. Preparing documents

First make sure you have downloaded and unpacked the PHP program files, and if not, download one first. PHP Program files are not required to install, the download of the compressed package into any folder can be. In this case, PHP 5.2.13 is used.

Download php execution file: http://windows.php.net/download/

2.IIS Configuration

2.1 Adding an ISAPI filter

Go to Control Panel-programs-turn Windows features on or off, expand Internet Information Services, tick ISAPI filters, and finally click the OK button, as shown in:

Figure 1: Open ISAPI filter

2.2 Setting up ISAPI

2.2.1 Open IIS Manager

Go to IIS Manager (method: Right-click on "Computer", click "Manage", expand "Services and Applications" in the pop-up interface, and then double-click Internet Information Services (IIS) Manager) to enter the IIS management interface, such as.

Figure 2: Open IIS Manager

2.2.2 Adding an ISAPI path to PHP

In 2, double-click the "ISAPI and CGI Restrictions" icon and then go to the settings screen, such as.

Figure 3: Adding a PHP ISAPI

As shown in 3, click "Add", enter the PHP ISAPI path in the pop-up window, that is, PHP unpacking the Php5isapi.dll file path, the description of the text is arbitrary fill, such as "PHP", tick "allow to execute extension path", and then click "OK".

2.2.3 Adding a handler map for PHP

Click on the computer name (correct: should be clicked "site" under the need to set the name of the site, rather than the top of the computer name, this setting is for a site), you will see the right of "IIS" under the "Handler mapping" icon, such as.

Figure 4:iis Handler Mappings

Double-click on the "Handler mappings" icon to enter the Setup interface, such as:

Figure 5: Adding a PHP handler mapping

In the Settings screen click "Add script Map ...", and then fill in the corresponding content in the pop-up window, the request path is "*.php", the executable file is the PHP decompression package php5isapi.dll file path, as shown in Figure 3 fill in the same path. The name is arbitrary, can fill "php", request limit not set, click "OK" add complete.

2.2.4 Test PHP

Enter the following lines of code in Notepad:

Phpinfo ();
?>

Save as: info.php, put in the site directory, and then launch the browser, access to http://localhost/info.php, if you see the following screen to prove that the installation is successful!

Figure 6:php running a successful interface

http://www.bkjia.com/PHPjc/995280.html www.bkjia.com true http://www.bkjia.com/PHPjc/995280.html techarticle iis7.5 Installation configuration PHP environment, iis7.5 installation configuration PHP preface iis7.5 is installed in Win7, Win8 Web server, Win2003, Win2000 Web server uses iis6.0, because Win7, win8 system ...

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