Files changed (3)
Old driver that is written in C and used MongoDB C driver is still available in the "c-driver" branch.
Grab the module from https://bitbucket.org/onyxmaster/mod_gridfs/, remember the absolute path to the directory (referenced as /path/to/mod_gridfs later on)
-Grab MongoDB C++ driver from http://downloads.mongodb.org/cxx-driver/mongodb-linux-x86_64-latest.tgz, unpack it and go to the target directory
-Fix the driver build environment (change broken rights and build static library with PIC to allow module to be built as a shared library):
+Grab MongoDB from https://github.com/mongodb/mongo (post-2.0 branch required) and go to its directory
+Fix the driver build environment (build static library with PIC to allow module to be built as a shared library):
-sudo apt-get -y install mercurial wget g++ apache2 apache2-threaded-dev libboost-thread-dev libboost-filesystem-dev libboost-system-dev
+sudo apt-get -y install mercurial wget g++ apache2 apache2-threaded-dev libboost-filesystem-dev libboost-system-dev libboost-thread-dev
-Ubuntu installation fast-forward instructions (copy $HOME/mod_gridfs directory to a target machine first):
+Ubuntu installation fast-forward instructions (copy mod_gridfs directory to a target machine first):
GridFSConnection -- Connection string ("host[:port]" for single hosts, "replicaSetName/host[:port],[host[:port], ...]" for replica sets)
GridFSCacheMaxAge <maxAge> -- Optional, set cache max age in seconds (default is 1 week, maximum is 10 years), set to 0 to disable expiration caching (see Notes below)
GridFSConnectTimeout <timeout> -- Optional, set MongoDB connection timeout in seconds (default is 5 seconds)
-GridFSSlaveOk <On|Off> -- Optional, set MongoDB slaveOk mode (horizontal sharding), currently requires patched driver until https://jira.mongodb.org/browse/SERVER-5568 is resolved
If you're using gcc version less than 4.5, Apache parent process would crash when reloading modules (on a restart after module list is updated).
This is a known problem with gcc and libstdc++. Unfortunately, the only workaround is to upgrade your compiler and standard C++ library.