On Windows 10, build 19041 (2004 update), 64-bit.
Using Xampp with PHP 7.4.8.
- Go to here and download your relevant version: https://pecl.php.net/package/amqp (check which version you need in CLI using
php -v
)
- From the
.zip
, copy the rabbitmq.#.dll
to C:/Windows/System32
- From the
.zip
, copy the php_amqp.dll
to C:/xampp/php/ext
(or simply your php/ext
folder if using something else than Xampp)
If you've got PHP running as a service with Apache, restart Apache. If you're using it via CLI (e.g. via Bash and/or Symfony CLI server) then you're already good to go.
Other posts mention the 64-bit variant to have the rabbitmq.#.dll
(where #
is the version) to go in C:/Windows/SysWOW64
. I tried that, didn't work for me, even though running 64-bit Windows and PHP.
$ php -v
PHP 7.4.8 (cli) (built: Jul 9 2020 11:30:39) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies