Home » Php » php – How do I install librdkafka on windows?

php – How do I install librdkafka on windows?

Posted by: admin February 25, 2020 Leave a comment

Questions:

I followed the following steps:

  1. Copy librdkafka.dll to C:\Windows\SysWOW64 if x86 otherwise copy to C:\Windows\System32. Don’t copy to both folders.
  2. Then run regsvr32 librdkafka.dll in command prompt.
  3. Then copy php_rdkafka.dll to ext folder of your PHP.
  4. Then add extension=php_rdkafka.dll to your php.ini file
  5. Restart PHP, DONE!!!

But when I run regsvr32 librdkafka.dll there are error that windows cannot register .dll. How can I install librdkafka on windows?

How to&Answers: