From http://vianoz.javaeye.com/blog/650791
Configure PHP in IIS 5.1 of the XP system so that IIS 5.1 of XP can also run PHP programs.
XP, as a common system, cannot be used as a server.
However, for debugging some ASP, PHP website programs are still okay.
You can use IIS 5.1 of XP to debug ASP.
For PHP, you still need to install something and make some settings.
Steps:
Step 1: Download the PHP main program, which uses PHP 5.2, and decompress it to the root directory of drive D on the local disk.
PS: I prefer to install the system frequently, so I didn't release drive C. I suggest you do not release drive C.
Appendix: PHP5.2.8 http://www.php.net/downloads.php#v5
Step 2: copy the PHP. ini-dist in the php folder to the C: \ WINDOWS directory and change it to php. ini.
To allow PHP to support MYSQL and GD libraries, You need to edit php. INI file, open the file in notepad, find "extension_dir", and then set extension_dir = ". /"change to extension_dir =" D: \ php \ ext "(this is based on the PHP installation path. If it is placed in the root directory of the E disk, it is" E: \ php \ ext "); remove the semicolon before"; extension = php_mysql.dll "and change it to extension = php_mysql.dll. Remove the semicolon before "; extension = php_gd2.dll" and change it to extension = php_gd2.dll.
Step 3: copy the php5ts. dll and libmysql. dll files to C: \ WINDOWS \ system32.
So far, our PHP installation is complete, but by default, IIS does not support PHP and can only support ASP. Therefore, we also need to create a PHP ing like creating CGI.
Step 4: Add a PHP filter.
Figure 1.
If Figure 2 appears, restart the computer.
Figure 2.
Step 5: add the application extension ing.
Figure 3.
Step 6: test.
Create a TXT file with the following content.
<?
Echo phpinfo ();
?>
Save it as the index. php file and copy it to the website publishing directory.
Browse (or browse in a browser). If yes, the table is configured successfully.
Figure 4.