Three ways to teach you win7 IIS7 Configure the PHP environment

Source: Internet
Author: User

This paper is reproduced from https://www.zh30.com/win7-iis7-php.html

Method One, install use Phpmanager
1. Download and install Phpmanager, official address: http://phpmanager.codeplex.com/.
2. Create and configure PHP.ini. Rename the Php.ini-development file to php.ini and modify Date.timezone= "Asia/shanghai". Go to the semicolon to open the desired extension, not to repeat here.
3. Open IIS7, double-click Phpmanager in the main panel, and click on "Register new PHP Version", select your Php-cgi.exe, OK. The rest of the configuration will be set up automatically for you.
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, and click "Add Module Map ..." In the right-hand menu, set as follows:
Request path: *.php;
module: fastcgimodule;
Executable file: Php-cgi.exe in your PHP folder;
Name: PHP;
3. Complete.

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

2. Add an application pool, set as follows:
Name: PHP;
. NET Framework version: no managed code;
Managed piping mode: integration
Tick start the application pool immediately.
Are you sure.

3. Double-click ISPA and CGI restrictions. Add a limit, set as follows:
ISAPI or CGI path: your php5isapi.dll.
Description: PHP.
Tick allows the extension path to be executed.
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 script Mappings. Double-click the handler mapping and click "Add script Map ..." On the right menu, set as follows:
Request path: *.php;
Executable file: your Php5isapi.dll file;
Name: PHP5;
Are you sure.
6. Complete.

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.