Differences between the ts-based and the ETS-vc6 and vc9 compiling versions in PHP

Source: Internet
Author: User
Tags vc9

VC6: legacy Visual Studio 6 compiler, which is compiled using this compiler.
VC9: Visual Studio 2008 compiler, which is compiled by Microsoft VS editor.
Because apache.org only provides the VC6 version, you can only use VC6 when using the original apache version. (Apache VC9 is available on www.apachelounge.com and can be used with PHP VC9. It has never been used)
TS: Thread Safe Thread security. During execution, the Thread security check is performed to prevent the new Thread from consuming system resources by starting the CGI execution mode.
NT: Non-Thread Safe Non-Thread security check is not performed during execution.
Two PHP Execution Methods: ISAPI and FastCGI.
The ISAPI (Internet Server Application Programming Interface) is executed in the form of a DLL dynamic library. It can be executed after being requested by the user and will not disappear immediately after processing a user request, therefore, Thread security check is required to improve program execution efficiency. If you use ISAPI to execute PHP, we recommend that you select the Thread Safe version.
Configuration method in apache:

# The following is required for php to load the TS version.
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 executes operations in a single thread, so it does not need to perform thread security checks. Apart from the thread security check protection, it can improve the execution efficiency. Therefore, if FastCGI is used to execute PHP, we recommend that you select the Non-Thread Safe version.
Configuration method in apache:

# The following two lines are required to load the php version of the ETS, and cannot be directly written 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 AddType application/x-httpd-php. php. php5. php4. php3. phtml. phpt file in php format.

If this configuration is complete, php-cgi.exe can still be used to parse the php webpage for the sake of authority. Therefore, the following section must be added:

<Directory "C:/wamp/bin/php/php5.3.6/">
AllowOverride None
Options None
Order allow, deny
Allow from all
</Directory>
We do not recommend that you use Non-Thread Safe in the production environment. Therefore, we use PHP of Thread Safe.
By default, XAMPP is configured in the http-xampp.conf in the way ISAPI is used

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.