PHP Thread Safe and Non-Thread Safe for Windows

前端 未结 3 494
一个人的身影
一个人的身影 2021-01-29 22:50

I am downloading PHP for Windows. I got 2 options on the website.

  1. PHP Thread Safe
  2. PHP Non-Thread Safe

Please answer the following questions

3条回答
  •  迷失自我
    2021-01-29 23:13

    Quick and simple: If you are using Apache edit your Apache24\conf\httpd.conf file and search for "loadmodule". If you see your loadmodule is referencing a .dll something like:

    LoadModule php7_module "e:/x64Stack/PHP/php7.1.9/php7apache2_4.dll"
    AddHandler application/x-httpd-php .php
    PHPIniDir "e:/x64Stack/PHP/php7.1.9"

    Then you want Thread Safety enabled or TS - Thread Safe version.

    Else if you are using IIS or Apache with CGI then NTS flavor.

    I use multiple stacks and within those multiple servers and versions of PHP so don't let the paths / php or server versions throw you.

提交回复
热议问题