PHP does not connect to localhost MongoDB and fails silently -


i have php script this:

try {     $conn = new mongoclient("mongodb://localhost:27017");     var_dump($conn); } catch (mongoconnectionexception $e) {     var_dump($e); } 

when visited page, showed nothing. mongod shows no connection attempt, shell client works normally.

i'm running mongodb 2.4 on debian.

any appreciated, thanks!


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -