Experimental Project

This is a sandbox project, which contains experimental code for developer use only.

This is a test profile for MongoDB that I have created because I had the need to do some test on environment on different servers, and also show some clients how Mongodb works.

Some modules are downloaded when you run the make file, this are the modules that I needed to run my own tests. You could easily add your own modules you want to test with MongoDB in the make file.

Also a couple of patches is done in the make file. These are patches that I needed to get my setup to work - so if you have different things you would like to test, it could be a good thing to check these.

Installation

Requirements: You need drush and drush make and mongodb running on the server with the php extension.

You need to update your settings.php to include the mongodb stuff (Example set up below). Note that if you add mongodb on a existing site, you need to import you nodes into mongodb if you would like to use field storage.

include_once('./includes/cache.inc');
//path to your mongodb_cache_inc
include_once('./profiles/mongodb_test/modules/mongodb/mongodb_cache/mongodb_cache.inc');
# -- Configure Cache
$conf['cache_class_cache']           = 'DrupalMongoDBCache';
$conf['cache_class_cache_bootstrap'] = 'DrupalMongoDBCache';
$conf['cache_default_class']         = 'DrupalMongoDBCache';
# -- Don't touch SQL if in Cache
$conf['page_cache_without_database'] = TRUE;
$conf['page_cache_invoke_hooks'] = FALSE;
# Session Caching
#$conf['session_inc'] = 'profiles/mongodb_test/modules/mongodb/mongodb_session/mongodb_session.inc';
#$conf['cache_session'] = 'DrupalMongoDBCache';
#$conf['mongodb_debug'] = TRUE;


$conf['mongodb_connections'] = array(
    'default' => array(                           // Connection name/alias
    'host' => 'mongodb://root:root@localhost',  // Omit USER:PASS@ if Mongo isn't configured to use authentication.
    'db' => 'mongodb_profile_test'                    // Database name
  ),
);

$conf['field_storage_default'] = 'mongodb_field_storage';

Download the installation profile.

  • Go into the mongodb_test profile-folder if you are not already there and
    run the following:
    drush make --no-core --contrib-destination=. mongodb_test.make
  • Run the installation profile
    drush si mongodb_test

Maintainers for MongoDB Install Profile

  • MiSc - 5 commits
    last: 3 weeks ago, first: 4 weeks ago

Issues for MongoDB Install Profile

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
nobody click here