Adding the ZeroMQ PHP Extension to XAMPP on Windows 10 and PHP7

I'm having problems adding the ZeroMQ PHP extension to XAMPP.

Setup: Windows 10, PHP7, XAMPP (7.0.9)

The steps that I have already taken:

  • Added PHP ( D:\xampp7\php) and PHP extensions ( D:\xampp7\php\ext) directories to the system variable (PATH)

  • Follow the instructions of zeromq.org . I downloaded the x86ts version from pecl repository as ( http://snapshot.zero.mq/ ).

  • Copied libzmq.dllto the PHP directory and php_zmq.dllto the PHP extension directory

  • Updated php.ini( D:\xampp7\php\php.ini) by adding extension=php_zmq.dlland checking the extension directoryextension_dir="D:\xampp7\php\ext"

  • Restart XAMPP through the control panel.

The Apache error log shows the following:

[Sat Nov 26 18:30:27.461679 2016] [ssl:warn] [pid 15280:tid 588] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Nov 26 18:30:27.546320 2016] [core:warn] [pid 15280:tid 588] AH00098: pid file D:/xampp7/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Nov 26 18:30:27.630955 2016] [ssl:warn] [pid 15280:tid 588] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
PHP Warning:  PHP Startup: Unable to load dynamic library 'D:\\xampp7\\php\\ext\\php_zmq.dll' - Das angegebene Modul wurde nicht gefunden.\r\n in Unknown on line 0
[Sat Nov 26 18:30:27.662208 2016] [mpm_winnt:notice] [pid 15280:tid 588] AH00455: Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/7.0.9 configured -- resuming normal operations
[Sat Nov 26 18:30:27.662208 2016] [mpm_winnt:notice] [pid 15280:tid 588] AH00456: Apache Lounge VC14 Server built: Jul  1 2016 11:09:37
[Sat Nov 26 18:30:27.662208 2016] [core:notice] [pid 15280:tid 588] AH00094: Command line: 'd:\\xampp7\\apache\\bin\\httpd.exe -d D:/xampp7/apache'
[Sat Nov 26 18:30:27.662208 2016] [mpm_winnt:notice] [pid 15280:tid 588] AH00418: Parent: Created child process 964
[Sat Nov 26 18:30:28.363210 2016] [ssl:warn] [pid 964:tid 616] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name

Update:

, , x64, Apache , Win32.

PHP Warning:  PHP Startup: Unable to load dynamic library 'D:\\xampp7\\php\\ext\\php_zmq.dll' - %1 ist keine zul\xef\xbf\xbdssige Win32-Anwendung.\r\n in Unknown on line 0

:

LoadFile "D:/xampp7/php/libzmq.dll" httpd.conf .

+4
1

(php 7.1.7 - xampp - 10 x64)

1

x86 dll

2

php_zmq.dll C:\xampp\php\ext

3

libsodium.dll libzmq.dll C:\xampp\php

4

extension=php_zmq.dll php.ini

5

apache

+3

Source: https://habr.com/ru/post/1662028/


All Articles