dongxietao0263 2019-01-07 10:17
浏览 78

使用php的MongoDB无法创建会话

I can create a session locally by using mongo shell and remotely by using vscode mongo plugin(Azure Cosmos DB).

But with PHP Mongo driver, it doesn't work:

MongoDB \ Driver \ Exception \ RuntimeException (11002)
Could not generate UUID for logical session id, we need a cryptography library like libcrypto, Common Crypto, or CNG

This error message is reported by php. No errors occurs on monogo.log

  • php version: 7.2.3, mongo version: 4.0.2.
  • both php-fpm and mongod are listening on the same ubuntu server.
  • both php-fpm and mongod has openssl enabled.
  • libcrypto and pkg-config is installed on this server(I don't know php will read it or not).
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥40 复杂的限制性的商函数处理
    • ¥15 程序不包含适用于入口点的静态Main方法
    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码