First install the IIS7 installation of the time to pay attention to three places to play a tick
Note: CGI will be used in iis7+php_5.3.5 environment.
ISAPI extensions and ISAPI filters are iis7+php_5.2.17
Start adding PHP support for IIS below
iis7+php_5.3.5
1. Extract the downloaded php_5.3.5 to the C:\php directory (also can be placed elsewhere, but should be modified later)
2. Rename Php.ini-development to PHP.ini
3. Modify PHP.ini Find Data.timezone Modify to Date.timezone = "Asia/shanghai" (must be changed here, or will warn) find Windows extensions to open the required modules, such as: PHP_CURL.D ll Php_mysql.dll Php_mysqli.dll Php_xmlrpc.dll php_curl.dll Just remove the front semicolon to save it.
4. Add < Module mappings >
The path here is filled out according to your actual situation.
5. Create a new phpinfo.php text file in the root directory of the Web site as follows:
<?php
Phpinfo ();
?>
6. Test, open the browser to see the results: localhost/phpinfo.php, if you can see a page similar to the following shows that you have succeeded:
Well, it is now possible to run the PHP program successfully.
iis7+php_5.2.17
The ISAPI extensions and ISAPI filters have been selected for the previous installation of IIS, so there is no need to add the role service and start directly
Modify the php.ini file first:
C:\php under the php.ini-dist (need to set the display extension) renamed to PHP.ini, open with Notepad to find Extension_dir = "./", and then put the inside./Change to c:\php (modify the path according to your actual situation)
1. Add an application pool
2. Add ISAPI and CGI restrictions
3. Add an ISAPI filter
4. Add a script map
5. Test (previously created phpinfo.php) Open localhost/phpinfo.php view effect as before:
IIS Configuration PHP Environment