PHP5.2.17 Official Download: Http://windows.php.net/downloads/releases/php-5.2.17-Win32-VC6-x86.zip
PHP5.3.5 Official Download: Http://windows.php.net/downloads/releases/php-5.3.5-Win32-VC9-x86.zip
First install good IIS7 installation should pay attention to three places to tick
Note: CGI will be used in iis7+php_5.3.5 environments
ISAPI extensions and ISAPI filters in the iis7+php_5.2.17
The following starts adding PHP support for IIS
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 after the corresponding)
2. Rename Php.ini-development to PHP.ini
3. Modify PHP.ini Lookup Data.timezone Modify to Date.timezone = "Asia/shanghai" (this must be changed, or it will be a warning) find Windows extensions to open the required modules, such as: Php_ Curl.dll php_mysql.dll php_mysqli.dll php_xmlrpc.dll php_curl.dll just remove the semicolon before you save it.
4. Add < Module mappings >
The path here is filled in according to your actual situation.
5. Create a new phpinfo.php text file in the site root directory:
<?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 are successful:
OK, now you can successfully run the PHP program.
iis7+php_5.2.17
The ISAPI extension and ISAPI filter have been selected before IIS was installed, and there is no need to add another role service to 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, with Notepad open to find Extension_dir = "./", and then put the inside of./change to c:php (according to their actual situation to modify the path)
1. Add Application Pool
2. Add ISAPI and CGI restrictions
3. Add ISAPI Filter
4. Add script map
5. Test (previously created phpinfo.php) the same as before open localhost/phpinfo.php view effect: