Http://www.netbei.com/Article/zz7/s1/200505/3493.html
There are a lot of tutorials on PHP configuration under IIS on the Internet, but they are some very rational things. I will sort out this tutorial from it.
For reference convenience, we can share with you any questions. If there is anything wrong, please correct me ..
The following tutorials are all implemented in Windows 2000. For other systems, see modify them,
Operating System Directory: C: \ winnt
Default PHP installation directory: C: \ PHP
PHP version: PhP 4.3.10: http://www.php.net/downloads.php (Windows binaries)
MySQL version: mysql-4.0.22-win: http://dev.mysql.com/downloads/
Zend: Zend optimizer v2.5.5: http://hn.51zz.com/soft17/ZendOptimizerWindows-i386.exe
First, extract the PHP compressed package to the C: \ PHP Directory,
First, change PHP. ini-Dist to PhP. ini.
Then copy PHP. ini and php.exe to the WINNT directory...
Copy php4ts. dll and php4isapi. dll (in the SAPI directory) to the WINNT/system32 directory ..........
To enable your PHP to support more modules, open PHP. ini in notepad and search extension_dir to change the value./to c: \ PHP \ extensions.
Then search; Windows extensions opens the following extension modules, as long as the previous ones are removed... but some modules are not supported ..
Create a PHP program test directory under IIS, such as D: \ Web.
In Service Manager, right-click "Default web site-> New-> site", alias: Web, actual path: D: \ Web
You must have the permission to read, run, and browse scripts;
Add a PHP filter to the ISAPI reseller of IIS.
PHP has two running environment modes...
But they are all added from here.
1. If you want to use the ISAPI mode, Run "C: \ winnt \ system32 \ php4isapi. dll" in the main directory of IIS to modify the executable path.
If you want to use CGI/FastCGI mode, first search for CGI. force_redirect = in PHP. ini to remove the previous; number and change the value to 0 (the default value is 1)
Then, modify the executable path in the main directory under IIS: C: \ winnt \ php.exe