Method for installing PHP in IIS

xiaoxiao2021-03-05  28

The method found online is generally not, I think it is because many friends use apache.

Below I introduce some ways to run PHP under IIS. Original!

Let's download a PHP installation software in Win32

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

Unzip it to a directory "C: / PHP",

Then copy the "PHP4Ts.dll" file in the "C: / PHP" directory to "C: / Winnt / System32",

Then copy the "php.ini-dist" file in "C: / PHP" to "C: / Winnt" and rename "php.ini"

Open the Administrative Tools in Control Panel, select "Internet Service Manager", right to select "Default Web Site",

Select "ISAPI Filter", add a new filter, the filter name is "php", the executable is "c: / php/sapi/php4isapi.dll"

After the addition is complete, switch to the "Main Directory", press Configuration, add a new "application map", the executable is "c: / php/sapi/php4isapi.dll", the extension is "

.php ", (of course, you can also use other extensions, your PHP program is used in this extension), other do not change.

After completing the addition, your IIS can use PHP.

This method passes the Win2000 IIS5.0 PHP4.3.1

Pay attention to the same thing, PHP under IIS If you want to use the function of the read and write file, you must first change the security attributes of the PHP program to "Everyone can fully control", so PHP

You can read and write files.

转载请注明原文地址:https://www.9cbs.com/read-33384.html

New Post(0)