,ggg, ,ggg,_,ggg,                        ,ggg,
             ,dPYb,            dP""Y8dP""Y88P""Y8b                      dP""8I           8I
             IP'`Yb            Yb, `88'  `88'  `88                     dP   88           8I
             I8  8I             `"  88    88    88                    dP    88           8I                      gg
             I8  8'                 88    88    88                   ,8'    88           8I                      ""
 gg,gggg,    I8 dPgg,   gg,gggg,    88    88    88    ,ggggg,        d88888888     ,gggg,8I   ,ggg,,ggg,,ggg,    gg    ,ggg,,ggg,
 I8P"  "Yb   I8dP" "8I  I8P"  "Yb   88    88    88   dP"  "Y8       ,8"     88    dP"  "Y8I  ,8" "8P" "8P" "8,   88   ,8" "8P" "8,
 I8'    ,8i  I8P    I8  I8'    ,8i  88    88    88  i8'    ,8 dP   ,8P      Y8   i8'    ,8I  I8   8I   8I   8I   88   I8   8I   8I
,I8 _  ,d8' ,d8     I8,,I8 _  ,d8'  88    88    Y8,,d8,   ,d8 Yb,_,dP       `8b,,d8,   ,d8b,,dP   8I   8I   Yb,_,88,_,dP   8I   Yb,
PI8 YY88888P88P     `Y8PI8 YY88     88    88    `Y8P"Y8888P"   "Y8P"         `Y8P"Y8888P"`Y88P'   8I   8I   `Y88P""Y88P'   8I   `Y8
 I8                     I8
 I8                     I8
 I8                     I8
 I8                     I8
 I8                     I8
 I8                     I8

Simplified installation of MongoDB on Windows

Mongo database install

  • Create folder: c:/data/db
  • Download the latest version of Mongo from http://www.mongodb.org/display/DOCS/Downloads and extract to c:/data
  • Double-click to execute c:/data/mongodb-win32-i386-1.4.2/bin/mongod.exe (adjust for your Mongo version) and leave the window running - closing the window will stop the Mongo server

Add the Mongo extension to PHP

  • Download the correct driver for your environment from http://github.com/mongodb/mongo-php-driver/downloads
    • VC6 is for Apache (VC9 is for IIS)
    • Thread safe is for running PHP as an Apache module (typical installation), non-thread safe is for CGI
  • Unzip and add the php_mongo.dll file to your PHP extensions directory (usually the "ext" folder in your PHP installation.)
  • Add to your php.ini: extension=php_mongo.dll
  • Restart your web server (Apache, IIS, etc.) for the change to take effect
Powered by Avinu