PHP / Fatal error: Class 'Mongo' not found in ...

If you're getting this error

Fatal error: Class 'Mongo' not found in [...]

then next instruction would probably help:
Create a file called
mongodb.ini in /etc/php5/conf.d with next content:

extension=mongo.so

then restart the webserver

sudo service apache2 restart

No comments:

Post a Comment