我遇到了將ZeroMQ PHP擴展添加到XAMPP的問題。將ZeroMQ PHP擴展添加到Windows 10和PHP7上的XAMPP中
設置:視窗10,PHP7,XAMPP(7.0.9)
步驟,我已經花了:
加入PHP(
D:\xampp7\php
)和PHP擴展(D:\xampp7\php\ext
)目錄系統變量(PATH)按照zeromq.org上的說明操作。由於列出的快照鏈接(http://snapshot.zero.mq/)已關閉,因此我從pecl repository下載了x86ts版本。
通過添加
extension=php_zmq.dll
複製libzmq.dll
到PHP目錄和php_zmq.dll
到PHP擴展目錄更新
php.ini
(D:\xampp7\php\php.ini
),並檢查了擴展目錄是extension_dir="D:\xampp7\php\ext"
重啓動XAMPP通過控制面板。
Apache的錯誤日誌顯示如下:
[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.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
更新:
它看起來像模塊不能被發現,但如果我添加了64位版本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中固定我的問題。
請寫個答案e答案部分..但我很高興你整理出來。 –