Install AMQP in windows 10 & PHP 7.3

后端 未结 3 1114
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-13 03:21

i want to install AMQP in windows 10 with PHP 7.3 for use in symfony 4. windows not use any apache/iis/nginx and run directly by symfony.

everything ok! until, i de

相关标签:
3条回答
  • 2021-01-13 03:38

    Try:

    • copying php_amqp.dll and php_amqp.pdb into \php\ext\
    • copying rabbitmq.4.dll and rabbitmq.4.pdb into \php\

    It didn't work for me with PHP 7.2.13RC1, but it works with PHP 7.2.17

    I'm using Windows 10, x64, PHP non thread safe

    0 讨论(0)
  • 2021-01-13 03:43
    1. Be shure you download compatible version php and amqp libriary (thread-save or no9t-thread-safe, x86 or x64).

    For example:

    • php 7.3.8 ts x64 link https://windows.php.net/downloads/releases/php-7.3.8-Win32-VC15-x64.zip
    • amqp 1.9.4 ts x64 for 7.3 link https://windows.php.net/downloads/pecl/releases/amqp/1.9.4/php_amqp-1.9.4-7.3-ts-vc15-x64.zip

    links to all versions for windows:

    AMQP https://pecl.php.net/package/amqp/1.9.4/windows

    PHP https://windows.php.net/download/

    1. You need to register dll regsvr32 c:\windows\system32\rabbitmq.4.dll (or copy rabbitmq.4.dll to c:\php\ dir)

    and move php_amqp.dll to extension dir move c:\php\php_amqp.dll c:\php\ext\

    0 讨论(0)
  • 2021-01-13 03:53

    1) generate phpinfo file, check - Architecture ie: x86 - PHP Extension Build ie: API20170718,TS,VC15 - Thread Safety ie: enabled

    2) go to https://pecl.php.net/package/amqp find version of library acording to your PHP ver, and thread safe or not thread safe

    like here: https://pecl.php.net/package/amqp/1.9.4/windows

    3) unzip/tar package copy php_amqp.dll into ext dir in php dir (ie: c:/xammp/php/ext)

    4) edit php.ini add "extension=php_amqp.dll"

    copy rabbitmq.4.dll and rabbitmq.4.pdb into ie: c:/xammp/php

    5) install Win32OpenSSL (save dlls in windows/system dir)

    https://slproweb.com/products/Win32OpenSSL.html

    0 讨论(0)
提交回复
热议问题