Home  >  Article  >  Backend Development  >  Windows2008RC2 IIS configure php running environment

Windows2008RC2 IIS configure php running environment

WBOY
WBOYOriginal
2016-08-08 09:20:261129browse

1: Download a php manager and install it. After opening the IIS manager, click on Computer, you can see PHPManager lying there quietly on the right, double-click PHPManager After that we can start configuring PHP.

2: CGI and FastCGI settings in

php.ini

fastcgi.impersonate = 1
fastcgi.logging = 0
cgi.fix_pathinfo=1
cgi.force_redirect = 0

Then click Register new php version; select the physical location of php-cgi; other configurations It is similar to the configuration under Apache, but it is displayed in a graphical interface;

3: The last thing to say is url rewrite, you need to download the URL Rewrite Moduel, the official download address: http://www.iis.net/ learn/extensions/url-rewrite-module/using-the-url-rewrite-module

There are x86 (32-bit) and x64 (64-bit), generally download the 64-bit one. (For 32-bit, it is said that you need to enable 32-bit applications in the application pool => Advanced Settings)

After downloading and installing, url rewrite will be displayed at the same level as the site php manager; you can use Import Rules to directly import the htaccess file of apache , the conversion supports IIS rewrite, very user-friendly;

4: Test, everything is OK;

Reference: http://www.php.net/manual/zh/install.windows.iis7.php

                                                                              . /www.myhack58.com/Article/sort099/sort0100/2013/40240_3.htm

Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.

The above introduces the configuration of PHP running environment in Windows2008RC2 IIS, including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
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
Previous article:Nginx red-black treeNext article:Nginx red-black tree