I'm getting the following error:
Uncaught exception 'MongoConnectionException'
with message
'Failed to connect to: :0: Connection refused'
When I use the url given by openshift:
$m =new MongoClient("mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/");
I have tried various including
$m =new MongoClient("mongodb://admin:<password here >@$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/");
I can connect through rockmongo so MongoDB is running ok