MongoDB-Rox / phpMoAdmin-MongoDB-Admin-Tool-for-PHP

MongoDB administration tool for PHP built on a stripped-down version of the Vork high-performance framework

Home Page:http://www.phpMoAdmin.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot connect to the MongoDB database

oceatoon opened this issue · comments

hi
Thanks for the tool, looks interesting
strangely I manage to connect to my DB in my own PHP script
so I'm sure the DB is running fine
but not in moadmin.php , I get
Cannot connect to the MongoDB database.
If Mongo is installed then be sure that an instance of the "mongod" server, not "mongo" shell, is running.

do you have any idea why ?

Changing localhost to 127.0.0.1 in moadmin.php solved my problem.

Oceatoon, there are too many variables between systems to be able to assist in your question (why you cannot connect to Mongo)

mrdummy, your issue is not with phpMoAdmin as your environment is not set up in the typical manner - to fix properly add to your computer's hosts file:
127.0.0.1 localhost