Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install amqp on windows

I am having this error while installing pecl/amqp

when I type in the command line: pear install pecl/amqp

WARNING: php_bin C:\xampp\php.\php.exe appears to have a suffix .\php.exe,

but

config variable php_suffix does not match
ERROR: The DSP amqp.dsp does not exist.

I need to install this so that I can use amqp (RabbitMQ) on php.

like image 231
See Sharp Beta Avatar asked Dec 11 '12 09:12

See Sharp Beta


People also ask

How do I run Rabbitmqctl on Windows?

Run RabbitMQ Service The RabbitMQ service starts automatically. You can stop/reinstall/start the RabbitMQ service from the Start Menu. Once all done open : http://localhost:15672/ for opening the rabbitmq management.

How do I download Rabbitmqadmin?

rabbitmqadmin can be downloaded from any RabbitMQ node that has the management plugin enabled. Navigate to http://{hostname}:15672/cli/rabbitmqadmin to download it. The tool requires a supported version of Python to be installed.


1 Answers

After many hours of search: To install amqp to php7.4 & Windows 10 (https://pecl.php.net/package/amqp),

  1. Choose the good file (x86,x64,ts,nts)
    php -i or phpinfo() (Architecture => x64)
    php -i|findstr "Thread" (ts or nts enable)

  2. Copy
    rabbitmq.4.dll and rabbitmq.4.pdb files to PHP root folder
    php_amqp.dll and php_amqp.pdb files to PHP\ext folder

  3. Add extension=amqp to the php.ini file

  4. check php -m if you show amqp (php -v to show errors)

Big thank's to Rezende (tutorial)

like image 106
Adelraiser Avatar answered Oct 20 '22 22:10

Adelraiser