1. First, decompress the php compressed package (here, PHP4.3.2 is taken as an example) to the C:php-4.3.2-Win32 directory, and then find a file called php.ini-recommended from it and put it Renamed php.ini.
2. Open the file, find extension_dir = "./", and change it to extension_dir = "C:php-4.3.2-Win32extensions"; then find session.save_path = /tmp, and change it to session. save_path = C:php-4.3.2-Win32sessions. (Note: At this time you need to create a sessions folder in the C:php-4.3.2-Win32 directory to store the session. )
3. Copy the modified php.ini file to the C:winnt directory, and copy the php4ts.dll file under C:php-4.3.2-Win32 to the C:winntsystem32 directory.
4. Open "Internet Service Manager", select the site you want to support PHP, open the properties page, click the "ISAPI Filter" tab, click "Add", and click "Add" in the pop-up "Filter Properties" window. Fill in "php" in "Filter Name"; fill in "C:php-4.3.2-Win32sapiphp4isapi.dll" in "Executable File" (as shown in Figure 1), and click OK.
5. Click the "Home Directory" tab, select the "Configuration" button in "Application Settings", click the "Add" button in the pop-up "Application Configuration" window, and click the "Add/Edit Application" in the pop-up In the "Program Extension Mapping" window, fill in "C:php-4.3.2-Win32sapiphp4isapi.dll" in "Executable File", and fill in "php" in "Extension Name". (As shown in Figure 2).
OK, everything is done, restart IIS, write a phpinfo in your page file directory, and test whether the PHP file can be parsed correctly. If a 500 error occurs, make sure you didn't forget step three.
Figure 1
Figure 2