First, PHP MongoDB windows7_64 bit installation and configuration

Source: Internet
Author: User
Tags php mongodb

NoSQL is very popular now, because I am in the company's environmental problems, the current lack of such a database, out of curiosity, turned over the information, but also self-study a bit. Make a note of it here.

My native environment: apmserv5.2.6,php must be 5.2.

1, First download: Mongodb-win32-x86_64-2008plus-2.6.3.zip (Forget where to download the), decompression such as:

I copied the extracted files to the E:\mongodb directory.

2, then search the internet for a bit: Php_mongo_extension.zip, and then download, (Forget where to download the), decompression such as:

I selected the Php_mongo.dll in the red box and then copied this file into my PHP environment under the Ext folder. Then restart Apache.

3, the above two steps to complete the configuration, the following start to MongoDB.

I used the simplest way to start, write a mongodb.cnf file, and put it in the e:\mongodb\bin\ directory. The content is: dbpath=e:\mongodb\data\db, of course, the premise is to have this directory. (You don't have to create a directory under Windows.) mkdir

It's over by here.

This time, the phpinfo will certainly have something to show:

Then write the following code directly in the Zend:

OK, it's done!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.