How to install PHP in IIS

Source: Internet
Author: User
The method for searching on the internet is generally not good. I think it is also because many friends use APACHE. Below I will first introduce a method that will certainly be able to run PHP in IIS for you. Original! First Download a PHP installation software http://www.downloadsk in WIN32

The method for searching on the internet is generally not good. I think it is also because many friends use APACHE.

Below I will first introduce a method that will certainly be able to run PHP in IIS for you. Original!


First Download a PHP installation software in WIN32

Http://www.downloadsky.com/soft/516.html


Decompress it to a directory named "C: \ PHP ",

Copy the "php4ts. dll" file in the "C: \ PHP" directory to "C: \ WINNT \ system32,

Copy the "PHP. ini-dist" file in "C: \ php" to "C: \ WINNT" and change it to "php. ini"

Open "governance tools" in "control panel", select "Internet service controller", right-click and select "properties" of "default Web site ",

Select "ISAPI filter" and add a new filter. the filter name is "PHP" and the executable file is "C: \ PHP \ sapi \ php4isapi. dll"

After adding the file, switch to the "main directory" and press "configure" to add a new "application ing". the executable file is "C: \ PHP \ sapi \ php4isapi. dll. php ", (of course, you can also use another extended name, and your PHP program uses this extended name for application). do not modify anything else.

After adding IIS, you can use PHP.

This method is passed in Win2000 IIS5.0 PHP4.3.1

Pay attention to one thing. for PHP in IIS, if you want to apply the function for reading and writing files, you should first change the security attribute of the directory where the PHP program is located to "everyone can be fully controlled ", in this way, PHP can read and write files.

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.