Decompress the PHP package using WinZip to the C:/PHP Directory, and copy the php. ini-Dist files in the directory to the C:/WINNT directory;
3. Change "C:/winnt/PHP. ini-Dist" to "php. ini" and enable and modify it:
① Find extension_dir =./And change./to C:/PHP/Ext.
② If you want to use ms SQL Server, find; Extension = php_mssql.dll, and remove ";" before extension = php_mssql.dll.
③ Find session. save_path = and set the value of session. save_path to C:/winnt/temp, that is, session. save_path = C:/winnt/temp.
④ Close PHP. ini. The PHP configuration file is modified successfully.
4. Find" Program"->" Administrative Tools "->" Internet Service Manager ", select" Default web site ", open its" properties "window, and select the" main directory "page, click the "configuration" button under "application settings", click the "add" button in the new window, and enter "C: /PHP/php.exe ", enter". PHP, and click OK ".
5. Select the "ISAPI filter" Page and click the "add" button. Enter "php" in "Filter Name" and enter "C: /PHP/php5isapi. DLL, and click OK ".
6. Select the document page and click the Add button. In the default Document Name field, enter index. PHP, click "OK", and raise it to the highest level. You can also add common PHP file names, such as "Default. phtml" and "index. php3.
7. After configuring PHP in IIS, you can use the PHP file on the server.