PHP Version Selection

Source: Internet
Author: User
Tags php development environment php website vc9

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.