Configure PHP in IIS7

Source: Internet
Author: User
IIS7 PHP configuration 1. modify php. ini

The main changes are as follows:

Rename php. ini. recommend to php. ini. in Notepad, uncomment the following configuration nodes and modify the values as follows:

Extension_dir = "./ext"

Fastcgi. impersonate = 1

Extension = php_mysql.dll

Date. timezone = 'prc'

2. open IIS to create a website and point to the directory where the php program is located.

Handler ing → Add module ing

Request path: *. php

Module: FastCgiModule (this is the option. if not, go to enable or disable the windows function and check whether the CGI function in IIS is enabled. if not, open it first)

Executable file: {php install dir} \ php-cgi.exe

Name: just start one, for example, PHPViaFastCGI.

Click OK, and then click Yes. The operation is successfully added.

Create serverinfo. php on the test page. the content is

Browse the page in the browser and check whether the mysql extension is correctly loaded (search for mysql on the page and you can see that the following information is correctly loaded). at this point, the configuration is successful.

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.