• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved How can I install the mongodb php driver for PHP 7.0?

ShadowFM

New Pleskian
Hello all in the Plesk forum :)

Today I have installed Plesk Onyx on an fresh installed Debian 8 Server.

I have an web application which need the mongodb driver so I have looked to install it on Plesk.


If I use the command
Code:
/opt/plesk/php/7.0/bin/pecl install mongodb

I become the message
Code:
root@webserver:/etc/apt/sources.list.d# /opt/plesk/php/7.0/bin/pecl install mongodb
PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/plesk/php/7.0/lib/php/modules/mongodb.so' - /opt/plesk/php/7.0/lib/php/modules/mongodb.so: cannot open shared object file: No such file or directory in Unknown on line 0
downloading mongodb-1.2.9.tgz ...
Starting to download mongodb-1.2.9.tgz (786,049 bytes)
.............................................................................................................................................done: 786,049 bytes
395 source files, building
running: phpize
Configuring for:
PHP Api Version:         20151012
Zend Module Api No:      20151012
Zend Extension Api No:   320151012
building in /tmp/pear-build-rootMpLH8p/mongodb-1.2.9
running: /tmp/mongodb/configure --with-php-config=/opt/plesk/php/7.0/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /opt/plesk/php/7.0
checking for PHP includes... -I/opt/plesk/php/7.0/include/php -I/opt/plesk/php/7.0/include/php/main -I/opt/plesk/php/7.0/include/php/TSRM -I/opt/plesk/php/7.0/include/php/Zend -I/opt/plesk/php/7.0/include/php/ext -I/opt/plesk/php/7.0/include/php/ext/date/lib
checking for PHP extension directory... /opt/plesk/php/7.0/lib/php/modules
checking for PHP installed headers prefix... /opt/plesk/php/7.0/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.13.5 (ok)
checking for gawk... gawk
checking whether to enable mongodb support... yes, shared
checking OpenSSL dir for mongodb... yes
checking whether to use system default cipher list instead of hardcoded value... no
checking PHP version... 70021
checking whether to enable developer build flags... no
checking whether to enable code coverage... no
checking whether to use system libbson... no
checking whether to use system libmongoc... no
checking configuring libmongoc... ...
checking for pkg-config... no
configure: error: Cannot find OpenSSL's libraries
ERROR: `/tmp/mongodb/configure --with-php-config=/opt/plesk/php/7.0/bin/php-config' failed

How can I fix this error?

Best Regards
ShadowFM
 
Back
Top