First, the php compressed package (PHP4.3.2 here for example) decompress to C: php-4.3.2-Win32 directory, and then find a named php. ini-recommended file, rename it php. ini.
2. open the file and find extension_dir = ". /", change it to extension_dir =" C: php-4.3.2-Win32extensions "; then find the session. save_path =/tmp and change it to session. save_path = C: php-4.3.2-Win32sessions. (Note: Now you need to create the sessions folder under the C: php-4.3.2-Win32 directory to store the session.)
3. Copy the modified php. ini file to the C: winnt directory, 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 that you want to support PHP, open the properties page, click the "ISAPI filter" tab, and click "add ", fill in "php" in the "Filter Name" in the pop-up "Filter Properties" window; fill in "C: php-4.3.2-Win32sapiphp4isapi.dll" (1) in "executable files", and click OK.
5. Click the "main directory" tab and select "configuration" in "application settings". In the displayed "application configuration" window, click "add, in the displayed "Add/edit application extension ing" window, enter "C: php-4.3.2-Win32sapiphp4isapi.dll" in the executable file, and "extension" in the "php" field ". (2 ).
OK. Restart IIS and write a phpinfo file under your page file directory to test whether the PHP file can be correctly parsed. If a 500 error occurs, make sure you have not forgotten step 3.
Figure 1
Figure 2