This is my answer to a Question on Support site for LampCMS project
How does your server config option look like in !config.ini?
Mine is like this: server = "mongodb://127.0.0.1:27017"
To support authentication try something like this:
"mongodb://username:password@127.0.0.1:27017"
If this does not work try replacing this:
in file Lampcms\Mongo\DB.php around line 153
replace $this->conn = new \Mongo($server, $aOptions);
with $this->conn = new \MongoClient($server, $aOptions);
MongoClient was introduced in php mongo driver 1.3.0, so make sure you have at least the 1.3.0 version.
Let me know how it works our for you.
in file Lampcms\Mongo\DB.php around line 153
replace $this->conn = new \Mongo($server, $aOptions);
with $this->conn = new \MongoClient($server, $aOptions);
MongoClient was introduced in php mongo driver 1.3.0, so make sure you have at least the 1.3.0 version.
Let me know how it works our for you.
No comments:
Post a Comment