How to remove mongodb.so from PHP

Asked

Viewed 20 times

0

Some time ago I installed Mongo DB on a virtual machine to test. I also installed the PHP library for database manipulation. So far so good. It turns out that after that I can no longer use Composer. Always gives the error below:

PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/mongodb.so' - /usr/lib/php/20151012/mongodb.so: cannot open shared object file: No such file or directory 
  • Locate your php.ini (use the command php -i or the code phpinfo();) and remove or add ; (at the beginning) of the line containing mongodb..

  • This error and because the db library does not exist, you can do what our friend @Valdeirpsr said and also try to install the library.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.