0

A PHP Error was encountered

Severity: Core Warning

Message: PHP Startup: Unable to load dynamic library > '/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/mongo.so' - > /opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/mongo.so: cannot > open shared object file: No such file or directory

Filename: Unknown

Line Number: 0

Backtrace:

I am getting this weird error, i am working ubuntu 16.04 and i am new in ubuntu and mongo. I have searched a lot this error on google but i could not find any solution.

Kindly ignore the mistakes of mine, and try to provide a suitable solution.

thanks.

Community
  • 1
  • 1
  • 1
    Looks like the mongo extension isn't installed. Have you tried `apt-get install php5-mongo`? – Daan Meijer Jan 03 '17 at 11:07
  • Could be a duplicate of http://stackoverflow.com/questions/12181280/how-to-run-extension-mongo-so-in-php-ini. Though this question doesn't have an accepted answer. – Tom Jan 03 '17 at 11:08
  • Hey @DaanMeijer i know its too late, but i have tried this command but no luck. It shows me an error `E: Unable to locate package php7-mongo` (as i am using php v7) – Tauqeer Ahmed Jan 06 '17 at 17:38
  • 1
    Have a look at: http://stackoverflow.com/questions/34486808/installing-the-php-7-mongodb-client-driver – Daan Meijer Jan 07 '17 at 16:15
  • @DaanMeijer thank you so much, this link guided me to install the PECL Library, and to install it i used `sudo pecl install mongodb` this command installed all the needed extensions then i restarted my apache server and bingo, it worked like charm. – Tauqeer Ahmed Jan 11 '17 at 06:04
  • 1
    Possible duplicate of [Installing the PHP 7 MongoDB Client/Driver?](http://stackoverflow.com/questions/34486808/installing-the-php-7-mongodb-client-driver) – Daan Meijer Jan 11 '17 at 07:37

0 Answers0