views:

373

answers:

1

In http://windows.php.net/downloads I couldn't find any x64 built for download. Further I have to choose among "Thread Safe" and "Non Thread Safe" with no explanation whether one is safer than the other or it performs better. The install.txt inside the available ZIPs for download seems out-dated an it doesn't mention anything about this.

In http://php.net/manual/pl/install.windows.iis7.php they don't say a word about it either...

Another doubt is once I know what to download (and why), should it be setup as a FastCGI module or as an ISAPI extension?

+1  A: 

(My experiences running PHP under IIS)

I believe that you should set up PHP as a FastCGI module - I don't think you are able to set up PHP as an ISAPI extension. You can set up PHP either using FastCGI or ISAPI - It may be that ISAPI is faster than FastCGI. There is a guide on setting up IIS using ISAPI here:

Searching google reveals a lot of pages discussing the thread safe vs non thread safe argument if you want to know the detail, however the short version is that the non thread safe version is faster, but the thread safe version is safer. You should choose the thread safe version for now unless you have a performance problem and know that your app is going to run correctly under the non thread safe binaries.

Finally, there isn't really any need for x64 binaries when running PHP as a FastCGI application - php runs as a separate process and so the x86 binaries will run fine on a x64 web server, and most normal php applications will have no need for an address space above 4GB as to scale IIS can simply start additional php processes.

When configuring your FastCGI extension you need to point it at the php-cgi.exe executable in the php installation directory.

Kragen
Thank you so much for the answer.Regarding installing it as an ISAPI, I just found this page: http://www.lazynetworkadmin.com/knowledgebase-mainmenu-6/2-windows/141-install-php-on-server-2008-r2 it seems posible too... I'll give both methods a try.
arosa
@arosa - Looks like a good link - you may be better off running PHP as an isapi extension it seems.
Kragen