If you enabled authentication for mongodb, then moadmin will fail to show the databases. This is because moadmin is not authenticated to list the databases. You might get the following error.
Fatal error: Uncaught exception ‘MongoCursorException’ with message ‘localhost:27017: not authorized for query on admin.system.namespaces’
I am considering a scenario where I enabled authentication as said in the link here. In that case open your moadmin.php file and make the following change, so that it authenticates itself.
You need to edit MONGO_CONNECTION parameter.
root@abc:~# vi /home/abc/public_html/moadmin.php
#define(‘MONGO_CONNECTION’, ”); // Comment out the old connection parameter
define(‘MONGO_CONNECTION’, ‘mongodb://admin:admin@127.0.0...
Recent Comments