Because RabbitMQ is implemented by erlang language, you must first install the erlang environment
erlang download and install:
http://www.erlang.org/download.html
rabbitmq download and installation:
https://www.rabbitmq.com/install-windows.html
php amqp extension download address:
http://pecl.php.net/package/amqp
The installation process of windows will not be described in detail. Here is a brief introduction to the configuration
After decompression, it is as follows
Installation method:
1. Copy php_amqp.dll to php/ext. For example, I put mine in G:/php/php-5.5.6-Win32- VC11-x64/ext directory
2. Add the following code to php.ini
[amqp]extension=php_amqp.dll
3. Copy rabbitmq.1.dll to the php directory, such as mine in G:/php/ php-5.5.6-Win32-VC11-x64 directory
4. Modify the apache configuration file httpd.conf and add
LoadFile "rabbitmq.1.dll文件路径"
such as my configuration information
Restart apache phpinfo and the display is as follows
The above is the detailed content of php install amqp extension (windows). For more information, please follow other related articles on the PHP Chinese website!