在 Windows 10 & 中安装 AMQPPHP 7.3
我想用 PHP 7.3 在 windows 10 中安装 AMQP,以便在 symfony 4 中使用.windows 不使用任何 apache/iis/nginx 并直接由 symfony 运行.
i want to install AMQP in windows 10 with PHP 7.3 for use in symfony 4. windows not use any apache/iis/nginx and run directly by symfony.
一切正常!直到,我决定在项目中使用rabbitmq并需要amqp.
everything ok! until, i decide to use rabbitmq in project and need amqp for it.
所以,1.下载AMQP 1.9.4 (php7.3兼容)
2. 将 php_amqp.dll 复制到 c:php
3.将rabbitmq.4.dll(兼容AMQP 1.9.4)复制到c:windowssystem32
4. 添加扩展=php_amqp.dll > php.ini
5. php.ini extension_dir = "ext"
So,
1. download AMQP 1.9.4 (php 7.3 compatible)
2. copy php_amqp.dll to c:php
3. copy rabbitmq.4.dll (AMQP 1.9.4 compatible) to c:windowssystem32
4. add extension=php_amqp.dll > php.ini
5. php.ini extension_dir = "ext"
但我收到此错误:
PHP Warning:
PHP Startup: Unable to load dynamic library 'php_amqp.dll'
(tried: extphp_amqp.dll (The specified module could not be found.),
extphp_php_amqp.dll.dll (The specified module could not be found.)) in Unknown on line 0
我试试这些说明:
1. 将 php.ini extension_dir 改为 "C:phpext"
2. 安装openssl 1.1
3.将libeay32.dll,ssleay32.dll复制到c:windowssystem32"
4.重启,重启,重启,……
i try these instruction:
1. change php.ini extension_dir to "C:phpext"
2. install openssl 1.1
3. copy libeay32.dll,ssleay32.dll into "c:windowssystem32"
4. restart, restart, restart, ...
我该如何解决这个问题?
how can i solve this problem?
推荐答案
试试:
- 将 php_amqp.dll 和 php_amqp.pdb 复制到 phpext
- 将rabbitmq.4.dll和rabbitmq.4.pdb复制到php
它不适用于 PHP 7.2.13RC1,但它适用于 PHP 7.2.17
It didn't work for me with PHP 7.2.13RC1, but it works with PHP 7.2.17
我使用的是 Windows 10、x64、PHP 非线程安全
I'm using Windows 10, x64, PHP non thread safe
相关文章