Hello everyone
I want to install mongodb with drupal 7 but when I enable mongodb contrib module in drupal then the blank page appears and whole drupal stop working.
I have also create local.settings.php and populate with mandatory confugration variables with root directory of settings.php file in drupal.
On my server mongodb is also installed.
What I am doing wrong...
Please suggest how can I use this module in drupal
Is there any step by step method documentation
I have no idea to how work this module.
Please help!!!
Thanks

Comments

Andrew.Mikhailov’s picture

Hello!
Please tell me what in your error logs (php, apache, nginx) or drupal watchdog?

rishabh318’s picture

I can't see any error log in watchdog table. it's just a blank screen after enable mongodb Module.
May be i can't check how to see error log?

I have no Idea about how to install mongodb in Drupal 7. I have never used mongodb before.

Please help!!!

Andrew.Mikhailov’s picture

For example apache2 log (something for Nginx - /var/log/nginx/error.log):
tail -n30 /var/log/apache2/error.log
And attach file log.

Thanks.

Jaypan’s picture

Have you started up your instance(s) of MongoDB?

Anyways, as a side note, we just migrated one of our systems off MongoDB as it is too unstable. I won't be using it again until it has significantly matured beyond it's current state.

rishabh318’s picture

Hi,
I am working on Drupal 7 website. I need to install mongodb with my drupal. What should I need to do?
Please help.
it seems mongo db is not installed, when I see phpinfo() there is no information regarding Mongo. My PHPversion is (PHP Version 5.4.6-1ubuntu1.8.)
When I execute it from terminal by typing mongo.
username:/$ mongo
it shows:
MongoDB shell version: 2.6.7
connecting to: test
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
http://docs.mongodb.org/
Questions? Try the support group
http://groups.google.com/group/mongodb-user
Server has startup warnings:
2015-02-09T16:44:41.973+0530 [initandlisten]
2015-02-09T16:44:41.973+0530 [initandlisten] ** NOTE: This is a 32 bit MongoDB binary.
2015-02-09T16:44:41.974+0530 [initandlisten] ** 32 bit builds are limited to less than 2GB of data (or less with --journal).
2015-02-09T16:44:41.974+0530 [initandlisten] ** Note that journaling defaults to off for 32 bit and is currently off.
2015-02-09T16:44:41.974+0530 [initandlisten] ** See http://dochub.mongodb.org/core/32bit
2015-02-09T16:44:41.974+0530 [initandlisten]

Andrew.Mikhailov’s picture

Hello!
>I am working on Drupal 7 website. I need to install mongodb with my drupal. What should I need to do?
You need to download and configure mongodb module.
Please set it on your settings.php:

  $conf['mongodb_connections'] = array(
    // Connection name/alias
    'default' => array(
      'host' => 'host1,host2,host3',
      // Database name
      'db' => 'drupal_default',
      'connection_options' => array('replicaSet' => 'replicasetname'),
    ),
  );

Also please check README.txt
I think it can help.