Installing PHP under Windows is a good choice, depending on the Web server and the way you run it to choose the appropriate version of PHP.
"Where to download php?" 】
PHP build can be downloaded from PHP website before building PHP development environment.
"Non thread safe or thread safe?"
Choose whether the thread-safe PHP version is related to the Web server you intend to use
In the IIS environment
- FastCgi Run as: Select a non-thread-safe version
Cause: When running PHP in fastcgi Run, PHP has a separate process, and fastcgi is a single thread, so there is no thread safety issue.
- ISAPI Run as: Select a thread-safe version (Note: ISAPI run mode is no longer supported after PHP5.3.3)
Cause: There is no separate process for running PHP on an ISAPI basis, but it is run as a DLL by IIS, that is, the thread-safe PHP version that is attached to Iis,iis running in multithreaded mode and has a threading problem.
Apache Environment
- Run as Apache module: Select the thread-safe version
Cause: When PHP is running in the Apache module, PHP does not have a separate process, but as a DLL is loaded by Apache, that is, dependent on apache,apache running in multithreaded mode, there is a thread safety problem, so choose the thread-safe PHP version
- FastCgi run: Select a non-thread-safe version
Cause: When running PHP in fastcgi Run, PHP has a separate process, and fastcgi is a single thread, so there is no thread safety issue.
"VC6 or VC9?" "IIS Environment
Select VC9 and above.
Apache Environment
Apache downloaded from apache.org can only be used with the VC6 version of PHP, because the downloaded Apache is compiled using the Visual Studio 6 version.
To use the VC6 version above, the Apache binary installation package provided by the Apache,apache Lounge from the Apache Lounge is created using VC11. So it can be used with the latest version of PHP.
- The VC9 version requires users to install the Microsoft Visual C + + SP1 Redistributable Package (x86 | x64)
- VC11 version requires users to install Visual C + + redistributable for Visual Studio (x86 | x64)
From for notes (Wiz)
PHP Version Selection