Three ways to teach you win7 IIS7 Configuring the PHP environment

Source: Internet
Author: User
Tags configuration php

Three ways to teach you win7 IIS7 Configure the PHP environment.
Today the quiet heart to study under the Win7 in the use of IIS7 configuration PHP environment, in fact, very simple!
Before you do this, make sure that you do not have any other related environment programs and services installed on your PC before you uninstall the Apache or Wamp integration pack.

Method One, install and use Phpmanager
1. Download the installation Phpmanager, official address: http://phpmanager.codeplex.com/.
2. Create and configure the php.ini. Rename the Php.ini-development file to php.ini and modify the date.timezone= "Asia/shanghai". Go to the semicolon to open the required extension, here do not repeat.
3. Open IIS7, double-click Phpmanager in the main panel, then click on "Register new PHP Version", select your Php-cgi.exe, OK. The rest of the configuration will be set for you automatically.
4. Complete!

Method Two, manually configure the CGI mode (php5.3)
1. Create and configure PHP.ini, Ibid. 2.
2. Open IIS7, double-click the handler mapping in the main panel, then click "Add Module Mappings ..." In the menu on the right to set the following:
Request path: *.php;
module: fastcgimodule;
Executable file: Php-cgi.exe in your PHP folder;
Name: PHP;
3. Complete!

Method Three, manually configure the ISAPI mode (php5.2)
1. Create a php.ini. Php.ini-dist renamed to PHP.ini, open find extension_dir= "/", change the path to your PHP location.

2. Add an application pool, set as follows:
Name: PHP;
. NET Framework version: no managed code;
Managed Pipeline mode: integrated
Tick start application pool now.
Are you sure.

3. Double-click the ISPA and CGI restrictions. To add a limit, set the following:
ISAPI or CGI path: your php5isapi.dll.
Description: PHP.
Tick allow to execute extension path.
Are you sure.

4. Add an ISAPI filter, set as follows:
Filter Name: PHP;
Executable file: your Php5isapi.dll file;
Are you sure.

5. Add a script map. Double-click the handler map and click "Add script Map ..." In the menu on the right, set the following:
Request path: *.php;
Executable file: your Php5isapi.dll file;
Name: PHP5;
Are you sure.
6. Complete!

Reprinted from: Http://www.zh30.com/win7-iis7-php.html#comments

Three ways to teach you win7 IIS7 Configuring the PHP environment

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.