Immediately began to participate in the work, but also began to learn PHP!
1. Download Addresshttp://windows.php.net/download/
2. PHP Large versionPHP4: Too old, poor OO support has been largely eliminated. PHP5: A version of the--php5.2, php5.2.x-5.3.x, and PHP5.4 before the three branches are divided. Pre-①php5.2 version: Due to some functional defects or bug,php5.2 prior to the basic use of the version.
②php5.2.x-5.3.x:php5.2.x stability has been greatly improved, and the php5.3.x is better in stability, adding a lot of PHP5.2 features, such as built-in PHP-FPM, better garbage collection algorithms, Namespace introduction, Sqlite3 support and so on. Recommended 5.3.3
After ③php5.4 version: Features have some changes, now PHP website download only PHP5.4 above version download. PHP6: Basically do not have the application on the production line, still basically just a concept product.
3. X86/x64X86:32 bit operating system x64:64 bit operating system
4. Vc6/vc9/vc11VC6, VC9, VC11 represent Visual C + + 6, Visual C + + 2008, and Visual C + + 2012 compilation. Note that the VC9 version requires the installation of Visual C + + redistributable for Visual Studio 2008 SP1, while VC11 installs Visual C + + redistributable for visual Studi O 2012.
5. Thread Safety, None-thread Safe (non-thread safety)Thread Safety: This version is typically selected when IIS is loaded as an ISAPI. None-thread Safe: Generally choose this version when running in fastcgi mode, with better performance.
CGI, ISAPI, and fastcgi comparisons:
CGI (Common Gateway Interface/common Gateway Interface) is generally executable programs, such as EXE files, and the Web server each occupy a different process, and generally a CGI program can only handle a user request. In this way, when the user requests a very long time, it will occupy the system resources, such as memory, CPU times, resulting in low performance. The ISAPI (Internet Server application program Interface) is a set of Web services-oriented API interfaces provided by Microsoft that enables all of the functionality provided by CGI and expands on this basis, such as providing a filter application interface. Most ISAPI applications are used in the form of DLL dynamic libraries, which can be executed after being requested by the user, not disappearing immediately after processing a user request, but continuing to reside in memory pending processing of other user input. In addition, the ISAPI DLL application and Web server are in the same process, with a significantly higher efficiency than CGI. The fastcgi is a scalable architecture for CGI open extensions, whose main behavior is to keep the CGI interpreter process in memory and thus achieve higher performance. The traditional CGI interpreter's repeated loading is the main reason for the low performance of CGI, if the CGI interpreter stays in memory and accepts the FASTCGI process Manager dispatch, it can provide good performance, scalability, etc. PHP has the advantages and disadvantages of ISAPI and FASTCGI: ISAPI: Running PHP in ISAPI mode, the biggest disadvantage of this approach is the poor stability, when PHP error, the Apache process also died.
The advantage of running PHP in FastCGI mode: The first thing is that PHP does not break down Apache when it goes wrong, but PHP's own process is lost (but FastCGI will immediately restart a new PHP process instead of the lost process). Second, FastCGI mode runs better than ISAPI mode. Finally, it is possible to run both PHP5 and PHP4
Some drawbacks of the FastCGI pattern are that the FastCGI model is more suitable for the production environment, but it is not suitable for the development of the machine. Because when the Zend Studio debugger is used, FastCGI returns a 500 error on the page because it thinks the PHP process timed out.
in general, select Thread Safety under IIS, while Apache chooses None-thread Safe.
6. ApacheApache has two download addresses: ①apache lounge:http://apachelounge.com/, using PHP VC11 x86 or x64 version
②apache.org:http://apache.org/, you can only use the VC6 version, you cannot use the vc9+ version above.
Apache now mainstream two versions are 2.2 and 2.4, the note is in the integration of PHP, if the use of 2.2, then in the selection of PHP, it must be noted that the downloaded PHP directory must have "Php5apache2_2.dll" file, because in the configuration Apache " Apache2.2\conf\httpd.conf "LoadModule in File" LoadModule php5_module "C:/php/php5apache2_2.dll" "must be Php5apache2_2.dll , otherwise "The requested operation has failed!" of errors. For apache2.4 the same, only "LoadModule php5_module" C:/php/php5apache2_4.dll use is 2_4.