Mongostead7
Mongostead7 copied to clipboard
Mongodb.ini is corrupt, not properly referenced in php and nginx conf.d, Class 'MongoDB\Driver\Manager'
The mongodb.ini files should be referenced/linked (ln -s) in the following locations /etc/nginx/conf.d/30-mongodb.ini, /etc/php/7.1/fpm/conf.d/30-mongodb.ini and /etc/php/7.1/cli/conf.d.30-mongodb.ini. However it just gets copied to the location where the script is initialized from. I ended up copying them manually. Also the mongodb.ini in mods-available (location linked from) is also corrupted. With the comment on the first line not showing up as a comment. As a result without these fixes the error Class 'MongoDB\Driver\Manager' was being shown. @zakhttp