Getting Started with MongoDB GridFS And PHP

By default, the MongoDB database can only store documents up to 16MB, the BSON-document size limit. This is perfectly fine for most cases, but what if you want to do something crazy, and use MongoDB as a filesystem? 16MB would not be enough for storing large media content, such as…

Read this article

MongoDB 3.x - Create Users

MongoDB 3 has a different way to create users compared to version 2.x. Now we need to use createUser rather than addUser. Enter the console mongo Create a user on a database use [database name] db.createUser( { user: "[username]", pwd: "[plaintext password]", roles: [ ] } ) Read here to learn more about…

Read this article

Debian 8 - Install MongoDB PHP Driver

Install pear and the php dev tools necessary for compiliation if you haven't already. sudo apt-get install php5-dev php5-cli php-pear -y Install the mongo driver sudo pecl install mongo This will ask you inf you want to install Enterprise authentcation and the default is 'no'; Add the extension to the…

Read this article

Debian 8 - Install MongoDB

Using Debian's Packages sudo apt-get update sudo apt-get install mongodb-server -y This will result in you installing a shell and server of version 2.4.10 Using MongoDB's Apt Repository This method allows your system to receive the latest stable version of MongoDB, but one that is deemed stable by…

Read this article