search

Home  >  Q&A  >  body text

Unable to load dynamic library 'php_grpc.dll'

My goal is to connect my laravel project to firestore firebase. I will need grpc to proceed with it. But my problem is that the .dll is not found. I have uploaded the .dll file into the ext folder.

I also included it in my php.ini file.

The same error still occurs

I don’t know if the versions of php and grpc conflict.

After applying the suggestions from the comments:

P粉818125805P粉818125805319 days ago385

reply all(2)I'll reply

  • P粉056618053

    P粉0566180532024-01-17 10:26:24

    As nice_dev pointed out this is a compatibility issue. I downloaded non-threaded x64 and used it. efficient. Been using x84, maybe that's why it doesn't work.

    reply
    0
  • P粉806834059

    P粉8068340592024-01-17 09:50:25

    • You need to mention the extension without the php_ and .dll prefix and suffix like this:
    • Restart the Apache server if necessary. You can also check the php version on the command line using php --version. If it shows the version without any warnings/errors, it means the extension is loaded correctly.

    • Additionally, as the error message in the screenshot indicates, you need to install the correct GRPC thread-safety package relevant to your OS architecture and PHP version https://pecl.php.net /package/grpc

    reply
    0
  • Cancelreply