Configure PHP {} in IIS 5.1 of XP System}

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.