PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, November 13, 2022

[FIXED] How can i enable libmongoc ssl?

 November 13, 2022     centos7, linux, php-7.2, plesk     No comments   

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)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

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

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing