Sunday, November 13, 2022

[FIXED] How can i enable libmongoc ssl?

Issue

Im using plesk 12 and PHP7 on centos 7. How can i enable libmongoc ssl on my server?

enter image description here


Solution

Try to compile it with

yum install git plesk-php70-devel make gcc openssl-devel

git clone https://github.com/mongodb/mongo-php-driver.git

cd mongo-php-driver/

git submodule update --init

/opt/plesk/php/7.0/bin/phpize

./configure --with-php-config=/opt/plesk/php/7.0/bin/php-config --with-mongodb-ssl=openssl

make

cp /root/mongo-php-driver/modules/mongodb.so /opt/plesk/php/7.0/lib/php/modules/

plesk bin php_handler --reread

After that in phpinfo() you will see:

libmongoc SSL enabled

libmongoc SSL library OpenSSL

libmongoc crypto enabled

libmongoc crypto library libcrypto



Answered By - IgorG
Answer Checked By - Gilberto Lyons (PHPFixing Admin)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.