Home  >  Article  >  Backend Development  >  php install amqp extension (windows)

php install amqp extension (windows)

藏色散人
藏色散人forward
2019-12-23 17:50:314060browse

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

php install amqp extension (windows)

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

php install amqp extension (windows)

Restart apache phpinfo and the display is as follows

php install amqp extension (windows)

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!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete