Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8873999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:36:38+00:00 2026-06-14T18:36:38+00:00

I am currently Using xampp for PHP . I installed *mongo_db(1.8.5)* in my system

  • 0

I am currently Using xampp for PHP. I installed *mongo_db(1.8.5)* in my system and also installed xampp-1.8.1-VC9 in my system. In order to configure PHP for mongoDB, I have downloaded *php_mongo.dll*(tried both VC9 thread safe and non-thread safe) and pasted the .dll file in the ‘../php/ext’ directory and also added extension=php_mongo.dll in the php.ini file.

Now when I try to start the apache in xampp it shows the following display eventhough apache is getting started.

PHP startup mongo: Unable to initialize module
Module compiled with module API : 20090626
PHP compiled with module API : 20100525
These options need to match.

Also my .php code to connect Mongo is not working. This means there is something wrong somewhere.

Where I am going wrong. Any help would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T18:36:40+00:00Added an answer on June 14, 2026 at 6:36 pm

    It looks like you’re trying to install an extension compiled for PHP 5.3 with PHP 5.4; the module API version needs to match the version of PHP.

    If you download the precompiled MongoDB PHP driver from Github (eg. php_mongo-1.2.12.zip is the current stable version) it includes DLLs for multiple PHP versions (eg 5.2, 5.3, and 5.4). You need to copy the correct DLL for your system and rename it php_mongo.dll.

    You can determine the required version from the phpinfo() output on your system (or php -i from a command line). Check the value for “Zend Extension Build”.

    For example:

    Zend Extension Build => API220100525,NTS,VC9
    

    .. would indicate you should use the NTS (Non-threadsafe) DLL.

    On 64-bit Windows, that would mean copying php_mongo-1.2.12-5.4-vc9-nts-x86_64.dll to php_mongo.dll in your PHP extension directory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was using xampp to develop locally and then I installed the PHP from
I'm running XAMPP on win7 to test fairly simple sites using PHP/MySQL/AJAX, and have
I am currently using XAMPP to test and Run my website on my Laptop.
Currently using Xcode 4.2 and I have two view controllers (1 and 2). I
I currently using android NDK to write some native code in C. I have
I am currently using XAMPP and Thunderbird 3 and wish to set up my
We have various php projects developed on windows (xampp) that need to be deployed
I'm currently using XAMMP for mac (http://www.apachefriends.org/en/xampp-macosx.html) for development, however this package hasn't been
I am currently building a gallery web application using php. I am currently developping
currently i'm using this XAMPP Lite 1.7.3 + Apache 2.2.14 (IPV6 enabled) + MySQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.