I’m getting a problem while installing php_ampq in wamp, php 8.2.
I have done as per a few tutorials, but it didn’t work.
I did the following.
- Moved php_amqp.dll in ext folder
- Moved rabbitmq.4.dll & rabbitmq.4.pdb into php root folder
- Added extension=php_amqp.dll in php.ini
I did as per the process but I get following error.
Warning: PHP Startup: Unable to load dynamic library 'php_amqp.dll' (tried: c:/wamp64/bin/php/php8.2.0/ext/php_amqp.dll (The specified module could not be found), c:/wamp64/bin/php/php8.2.0/ext/php_php_amqp.dll.dll (The specified module could not be found)) in Unknown on line 0
If I replace extension=php_amqp.dll with extension=amqp, then I get following error
Warning: PHP Startup: Unable to load dynamic library 'amqp' (tried: c:/wamp64/bin/php/php8.2.0/ext/amqp (The specified module could not be found), c:/wamp64/bin/php/php8.2.0/ext/php_amqp.dll (The specified module could not be found)) in Unknown on line 0
The dll file source
I ran the following cmd
php -i|findstr "Thread"
and I got
Thread Safety => enabled
Thread API => Windows Threads
dll I used was
php_amqp-2.1.2-8.2-ts-vs16-x64
and my system and OS both are x64.
How to Resolve this?