How to install PHP in IIS 7.5, Windows Server 2008 R2 (64 bit)

In http://windows.php.net/downloads I could not find the x64 created to boot. Next, I have to choose among “Thread Safe” and “Non Thread Safe” without explaining whether the other is safer or if it works better. The install.txt file inside the available zip files for download looks outdated and doesn't say anything about it.

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

Another doubt is that someday I will find out what to download (and why), should it be configured as a FastCGI module or as an ISAPI extension?

+7
php installation windows-server-2008-r2
source share
2 answers

(My experience with PHP under IIS)

I believe that you should configure PHP as a FastCGI module - I do not think that you can configure PHP as an ISAPI extension. You can configure PHP either using FastCGI or from ISAPI - ISAPI may be faster than FastCGI. There is a guide to configure IIS using ISAPI:

A google search shows many pages discussing the issue of safe vs vs stream, which does not require a stream argument if you want to know the details, however the short version is that the non-streaming safe version is faster, but the thread-safe version is more is safe. You should choose the version with streaming security at the moment , if you do not have a performance problem, and be aware that your application will work correctly in unsafe binary files.

Finally, there is no need for x64 binaries when running PHP as a FastCGI application - php works as a separate process, so x86 binaries will work fine on the x64 web server, and most ordinary php applications will have no need for the address space above 4 GB, as IIS scaling can simply trigger additional php processes.

When setting up the FastCGI extension, you need to specify it in the php-cgi.exe executable file in the php-cgi.exe installation directory.

+9
source share

I often use FastCGI when setting up PHP on IIS. This is a more habitual habit than anything else. Although I read many other published articles, and it seems that ISAPI has many advantages, I thought that I would add a link to the FastCGI configuration for those who want to go this route. I used it and never experienced problems with moderate request traffic.

In any case, a link to an article with screenshots on setting up PHP through FastCGI on IIS 7.5.

Click here to visit the article.

0
source share

All Articles