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.
everything ok! until, i decide to use rabbitmq in project and need amqp for it.
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:\windows\system32
4. add extension=php_amqp.dll > php.ini
5. php.ini extension_dir = "ext"
but i get this error:
PHP Warning:
PHP Startup: Unable to load dynamic library 'php_amqp.dll'
(tried: ext\php_amqp.dll (The specified module could not be found.),
ext\php_php_amqp.dll.dll (The specified module could not be found.)) in Unknown on line 0
i try these instruction:
1. change php.ini extension_dir to "C:\php\ext\"
2. install openssl 1.1
3. copy libeay32.dll,ssleay32.dll into "c:\windows\system32"
4. restart, restart, restart, ...
how can i solve this problem?
The RabbitMQ server can be run as either an application or service (not both). Log in as an administrator. To see the output, run these from a Command Prompt in the sbin directory. Note: On Windows Vista (and later) it is necessary to elevate privilege (e.g. right-click on the icon to select Run as Administrator).
Try:
It didn't work for me with PHP 7.2.13RC1, but it works with PHP 7.2.17
I'm using Windows 10, x64, PHP non thread safe
1) generate phpinfo file, check - Architecture ie: x86 - PHP Extension Build ie: API20170718,TS,VC15 - Thread Safety ie: enabled
2) go to https://pecl.php.net/package/amqp find version of library acording to your PHP ver, and thread safe or not thread safe
like here: https://pecl.php.net/package/amqp/1.9.4/windows
3) unzip/tar package copy php_amqp.dll into ext dir in php dir (ie: c:/xammp/php/ext)
4) edit php.ini add "extension=php_amqp.dll"
copy rabbitmq.4.dll and rabbitmq.4.pdb into ie: c:/xammp/php
5) install Win32OpenSSL (save dlls in windows/system dir)
https://slproweb.com/products/Win32OpenSSL.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With