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.