morteza3245

Well-Known Member
Sep 16, 2013
154
1
68
cPanel Access Level
Root Administrator
Hello
i installed mongo on centos7 and cpanel and all was fine
today i saw this error on error log:
Unable to load dynamic library 'mongodb.so'
and i checked here: /opt/cpanel/ea-php73/root/usr/lib64/php/modules
there is no file like mongodb.so

what is issue do you think?
how i should check if file mongodb.so exist or not?

how i should install mongodb.so again??

thanks.
 

morteza3245

Well-Known Member
Sep 16, 2013
154
1
68
cPanel Access Level
Root Administrator
ok, just i have some question

i want add mongodb.so on php.ini
i added from this section: multiphp ini editor > editor mode > php 7.3 and then i added below line:

extension=/opt/cpanel/ea-php73/root/usr/lib64/php/modules/mongodb.so

but when i check here: PHP 7.3.28 - phpinfo()
i see still there is no mongodb on php test

can you help where i should add this mongodb.so?

thanks.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
5,447
697
313
cPanel Access Level
Root Administrator
That's the correct process to uncomment the line, but it doesn't actually install the software for PHP to use it on the server. You may want to search the forums here to see what other users have done to try and implement this in the past, such as this user:

 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
5,447
697
313
cPanel Access Level
Root Administrator
The files are located in /opt/cpanel/ea-php##/root/etc/php.d. Inside that directory you'll see a list of files and each one contains the .so extension link.

The actual .so files are located in /opt/cpanel/ea-php56/root/etc/php.d/root/usr/lib64/php/modules/