如何在PHP IIS中添加ZeroMQ扩展



这个问题非常类似于:无法加载动态库php_zmq.dll-找不到指定的模块

但我需要一个特定于IIS中配置的答案PHP快速CGI,甚至可能仅限于v10(Windows Server 2016(。对我来说,通常的配置适用于XAMPP和Windows 10,但在IIS中失败了。

以下是我迄今为止所做的:

  1. 已安装所有可用的VC++Redistributables
  2. 已安装ZeroMQ v4.0.4
  3. 已下载PHP ZMQ v1.13-7.2-ts-vc15-x64
  4. 已将php_zmq.dll移动到C:\Program Files\IIS Express\php\v7.2\ext
  5. 已将libzmq.dll移动到C:\Program Files\IIS Express\PHP\v7.2
  6. 在php.ini中添加了扩展指令
  7. 已添加到ext文件夹的路径

服务器重新启动时,会引发以下警告:

[01-Dec-2018 01:11:34 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'php_zmq.dll' (tried: C:Program Filesiis expressPHPv7.2extphp_zmq.dll (The specified module could not be found.), C:Program Filesiis expressPHPv7.2extphp_php_zmq.dll.dll (The specified module could not be found.)) in Unknown on line 0

对于php -m,我也无法看到列出的zmq模块。

您出现以下错误:php_php_zmq.dll.dll和您可以将该文件名从php_php_zmq.dll更改为php_php_6zmq.dll.dll。

最新更新