How to install MongoDB to use with PHP on Windows

Just simple guide
  1. Download MongoDB from http://www.mongodb.org/downloads
  2. Extract the archive
  3. Open Command Prompt
  4. Goto mongodb\bin folder
  5. Type

    mkdir C:\data\db
    mongod.exe --dbpath=C:\data\db

  6. Make sure you use the correct driver. Use phpinfo().
  7. Download MongoDB driver from https://s3.amazonaws.com/drivers.mongodb.org/php/index.html
  8. Extract driver to php/ext folder
  9. Open php.ini file
  10. Append this extension=php_mongo.dll, save php.ini file, and then restart your web server.

Done!

References:

Change log:

Oct 7, 2014 – Update some links

Iklan

8 pemikiran pada “How to install MongoDB to use with PHP on Windows

    1. Hohoo… tulisan jadul ini mba’ >.<
      Kalau mau simple di Windows, bisa pakai Ampps. Didalamnya sudah include MongoDB dan RockMongo. Tinggal switch ke enabled untuk mengaktifkan 😀


Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s