VC6: legacy Visual Studio 6 compiler, which is compiled using this compiler.
VC9: Visual Studio 2008 compiler, which is compiled with Microsoft's VS editor.
Since apache.org only provides the VC6 version, you can only use VC6 when using the original apache. (A version of apache VC9 is available on www.apachelounge.com. It should be able to cooperate with PHP VC9. I have never used it.)
TS: Thread Safe thread safety, thread (Thread) safety check will be performed during execution to prevent new It is required that the CGI execution method of starting a new thread consumes system resources
NTS: Non Thread Safe, non-thread safety, no thread (Thread) safety check is performed during execution
Two execution methods of PHP: ISAPI and FastCGI.
ISAPI (Internet Server Application Programming Interface) execution method is used in the form of a DLL dynamic library. It can be executed after being requested by the user. It will not disappear immediately after processing a user request, so thread safety is required. Check, this will improve the execution efficiency of the program, so if you are using ISAPI to execute PHP, it is recommended to choose the Thread Safe version
Configuration method in apache:
#The following line is necessary to load the TS version of php
LoadModule php5_module “xxx/php5apache2_2.dll”
#The following line is optional
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php .php5 .php4 .php3 .phtml .phpt
FastCGI execution method uses a single thread to perform operations, so there is no need to perform thread safety checks. Removing the protection of thread safety checks can improve execution efficiency. Therefore, if FastCGI is used to execute PHP, it is recommended to choose Non Thread Safe version.
Configuration method in apache:
#The following two lines are necessary to load the NTS version of php. They cannot be written directly as Action application/x-httpd-php "c:/wamp/bin/php/php3.5.6/php-cgi.exe"!
ScriptAlias /php/ "C:/wamp/bin/php/php3.5.6/"
Action application/x-httpd-php "/php/php-cgi.exe"
#In addition, you must have the previous AddType application/x-httpd-php .php .php5 .php4 .php3 .phtml .phpt, so that you can recognize files in php format
#After this configuration, you may not be able to use php-cgi.exe to parse php web pages due to permission issues, so you need to add the following paragraph
AllowOverride None
Options None
Order allow,deny
Allow from all
< ;/Directory>
Officially it is not recommended that you use Non Thread Safe in a production environment, so we choose the Thread Safe version of PHP to use.
The default configuration of XAMPP in http-xampp.conf is to use ISAPI