Error while installing mongo driver for PHP on amazon linux

独自空忆成欢 提交于 2019-11-29 10:54:00

evp is high-level cryptographic functions.

Try to install development libraries:

Ubuntu: sudo apt-get install libssl-dev

CentOS: yum install openssl-devel

The right package to install is not libssl-dev but

sudo apt-get install pkg-config

and now you can execute

sudo pecl install mongodb

Don't forget to add extension=mongodb.so to your php.ini file.

To know which php.ini file is loaded you can create and simple php file on vps

<?php
   php_info()
?>

Example directory php.ini in phpinfo()

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!