PHP Configuration under IIS6 (reprint)

Source: Internet
Author: User
Tags vc9

Windows 2003+iis6+php5.4.10 How to configure PHP support space (2013-01-10-16:48:56)
Tags: php it php environment PHP configuration Category: PHP environment configuration
Summary: ASP and ASPX are generally supported by default on Windows systems that already have IIS installed, so here's how to make IT support PHP and support MySQL database.
Special statement: "If you choose PHP5.4.10 installation version can omit this step, because it automatically added the configuration, but because PHP5.4.10 does not have the installation version, so can only configure themselves, their configuration is more difficult, I finally chose the PHP5.3.20 version
But the following part I also put PHP5.4.10 manual configuration to write out, for users reference "
The first part:, first you want to go to the URL http://windows.php.net/download/download PHP for Windows version, you will see there are many different versions can be downloaded, then how to choose? The first option is to select the latest version first, and we see that the latest version is PHP 5.4 (5.4.10), so we'll download the PHP5.4.10 version.
① How to choose the VC6 version and VC9 version of PHP5.4.10
The VC6 version is compiled with the visual Studio 6 compiler, and if PHP is built with Apache, choose the VC6 version.
The VC9 version is compiled with the visual Studio 2008 compiler, and if PHP is built with IIS, select the VC9 version.
Principle of choice: 1. To use apache+php under Windows, please select the VC6 version;
2. To use iis+php under Windows, please select the VC9 version;

② How to choose the thread safe version of PHP5.4.10 and the non thread safe version
literally understands that thread safe is threaded and thread security is performed, The system resources are exhausted to prevent new requirements from starting the CGI execution of new threads. Non thread safe is non-threaded and does not thread (thread) security checks at execution time.
The second part: and then look at the two ways of executing PHP: ISAPI and fastcgi. The
ISAPI (Internet Server application program Interface) is a set of Web service-oriented API interfaces provided by Microsoft that enables the full functionality of CGI and expands on this basis. As provided by the filter application interface. ISAPI execution mode is used in the form of DLL dynamic library, can be executed after the user request, after processing a user request will not disappear immediately, so the need for thread security check, so as to improve the execution efficiency of the program, so if it is to execute PHP with ISAPI, it is recommended to choose thread Safe version;

FASTCGI is a CGI open extension of a scalable architecture whose main behavior is to keep the CGI interpreter process in memory and thus achieve high performance. FastCGI execution is performed on a single thread, so there is no need for thread security checks, and the removal of thread safety checks can improve execution efficiency, so if PHP is executed in fastcgi, it is recommended to choose the non thread safe version.
FASTCGI has been integrated into the IIS7 also supports IIS6, the installation method in IIS6 is described in detail below.
------------------------------------------------------------------------------
Attention:
①php5.4.10 is not able to run through the ISAPI extension on the IIS6, and PHP5.4.10 downloaded after the extracted files are not php5isapi.dll, instead of Php5nsapi.dll.
②php program from PHP5.3 later version will no longer use ISAPI extension in IIS run, so PHP5.4.10 of course there is no php5isapi.dll, this is also some netizens why in PHP5.4.10 The reason why Php5isapi.dll could not be found in the.
③ is there any way we can get PHP5.4.10 to run in IIS? Of course, that's the use of fastcgi. It is said to be highly efficient,
④ Why is fastcgi's execution efficiency high? That's because fastcgi is a CGI open extension of a scalable architecture, and its main behavior is to keep the CGI interpreter process in memory and therefore get high performance. The traditional CGI interpreter's repeated loading is the main reason for the low CGI performance, if the CGI interpreter remains in memory and accepts the FASTCGI process manager scheduling, it can eliminate the need for thread security checks, and remove the protection of thread Safety Check can improve execution efficiency

Part III: Building PHP5.4.10 Tutorial in Windows 2003 Environment
1. Download FastCGI for IIS6
Http://www.iis.net/expand/FastCGI (download X86 version) Copy the left URL to the address bar to download
(Note: The actual is to http://www.iis.net/downloads/microsoft/fastcgi-for-iis this URL to download fastcgi for IIS.)
The download page is:

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.