Vista IIS7 Add PHP-supported settings Method _win Server

Source: Internet
Author: User
Tags phpinfo

By the time the dispatch was made (September 25, 2009), PHP was the latest version of 5.3.0, but the 5.3.0 in IIS is fastcgi, and I never got it done on Vista IIS7.

Finally I used the old method, ISAPI, selected a version of the previous 5.3, I chose 5.2.11.

Download address for Php-5.2.11-win32.zip

Http://cn2.php.net/distributions/php-5.2.11-Win32.zip

If the above address is not easy to start, you can also go to the following address to download from other mirrors

Http://cn.php.net/get/php-5.2.11-Win32.zip/from/a/mirror

Download the Php-5.2.11-win32.zip back, the inside of the file into the C:\php directory (or D disk E is all right, but I used to put C disk).

Also make sure that in Vista "turn on or off Windows features" you will not only install IIS, but also install two important ISAPI components, as shown in the following illustration:

Here we start configuring PHP ...

1, the PHP directory under the php.ini-dist (display extension) to php.ini, and then open with Notepad, found in the Extension_dir = "./", and then the inside of the./Change to c:\php (that is, the path to the PHP to extract).

2, or in php.ini this file, find the following three lines, remove the semicolon before them (with a semicolon is the meaning of the annotation)

Extension=php_mbstring.dll

Extension=php_mssql.dll

Extension=php_mysql.dll

3, Save the php.ini, and then copy to the Windows directory.

4, open the Vista management tool in the Internet Information Services (IIS) Manager, in the "Application Pool" in the new application pool, named PHP. NET version is "no managed code."

5, in the "ISAPI filter" right click "Add", named PHP, executable file selected as C:\php\php5isapi.dll.

6, in the "ISAPI and CGI restrictions" in the right button "add", the path is selected as C:\php\php5isapi.dll, described also written in PHP, check "allow the extension path to execute."

7, in the "processor mapping" in the right key "add script map", the request path fill *.php, executable file also select C:\php\php5ispai.dll, name also called PHP.

8, the above work finished after the basic completion, the following test:

Build a folder in the directory specified by IIS, called PHP (I want to build php+iis, mainly because I want to develop and manage the project is both PHP, ASP and. NET), Then in this PHP directory to create a new file phpinfo.php, inside the content is the classic PHP test function:

  

Phpinfo ();

?>

Open the browser after saving to see the results: localhost/php/phpinfo.php, if you can see a page similar to the following shows you succeed:

Large-Scale Price Reduction
  • 59% Max. and 23% Avg.
  • Price Reduction for Core Products
  • Price Reduction in Multiple Regions
undefined. /
Connect with us on Discord
  • Secure, anonymous group chat without disturbance
  • Stay updated on campaigns, new products, and more
  • Support for all your questions
undefined. /
Free Tier
  • Start free from ECS to Big Data
  • Get Started in 3 Simple Steps
  • Try ECS t5 1C1G
undefined. /

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.