Install MongoDB and config to work with PHP

Step 1: Go to mongodb.org to download the version that works for your OS. Don’t download to C:\Program Files\ directory because MongoDB doesn’t recognize space in the path. You may want to install under C:\ directory
Step 2: Go to PECL to download the MongoDB driver for PHP version that runs on your OS (https://s3.amazonaws.com/drivers.mongodb.org/php/index.html)
Step 3: Open php.ini, add some config options for mongodb as follow
[mongodb]
mongo.allow_empty_keys =0
mongo.allow_persistent = 1
mongo.chunk_size =262144
mongo.cmd = “$”
mongo.default_host = “localhost”
mongo.default_port = 27017
mongo.is_master_interval =60
mongo.long_as_object =0
mongo.native_long = 1
mongo.ping_interval =5
mongo.utf8 =1
mongo.auto_reconnect=true
Step 4: Restart Apache server