开发者

Installing PHP on IIS 6 (Win2003)

I have been trying to install PHP 5.3.6 on a clean install of Win2003, no dot net or anything else much installed. Unfortunately I have tried 'thread safe', 'non thread safe', installer file, zip file etc. but whatever I try PHP just doesn't seem to work. I have also installed Microsoft C++ 2008 redistributable as suggested on PHP site but still nothing.

Any sugges开发者_如何学编程tions on how I should actually be installing this properly. There seems to be vague and at times conflicting instructions on the PHPweb site.


Make sure that you have told IIS how to handle PHP files.
In IIS Manager, expand the tree and find web service extensions, then make sure you have a spot for PHP, pointing to the php dll.

Installing PHP on IIS 6 (Win2003)

then make sure that your MIME types are set up correctly. Right click your website under Web Sites, view properties, then the HTTP Headers Tab. Click the MIME Types button, and make sure you have an entry for PHP.

Installing PHP on IIS 6 (Win2003)

This is how we got it set up in IIS Manager. Hope it helps you too.


Further investigation suggests that PHP 5.3.x will only work with IIS using FastCGI; isapi is no longer supported hence the reason that PHP5isapi.dll is missing. Unfortunately FastCGI cannot be installed on IIS without first installing Microsoft Web Platform Installer which requires dot net to be installed first.

This is crazy, PHP are effectively insisting that dot net is a pre-requisite for PHP - madness!


And further investigation reveals I was wrong - it is now installed and working.

Download and install FastCGI from here: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=227219AA-6AEC-4B80-A9FA-76F811EE9E84&amp%3Bdisplaylang=en This is a simple .msi install, no dot net required.

Restart IIS

Then download the NON Thread Safe PHP and install to IIS FastCGI Server option.

Now all working.


Here's how I installed PHP 5.3 on IIS 6 (running on Windows 2003 server): http://www.howtoadvice.com/PHPIIS


This document is a little old and outdated but you should be able to use Web Platform Installer to install PHP on IIS6 for you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜