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 6793943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:09:44+00:00 2026-05-26T18:09:44+00:00

I had PHP 5.2 with MongoDB installed on Debian Lenny x64 and everything was

  • 0

I had PHP 5.2 with MongoDB installed on Debian Lenny x64 and everything was fine.

After updating PHP to 5.3 (dotdeb) I can’t get MongoDB to work, I always get an error

Fatal error: Class 'Mongo' not found (...)

Everything else works fine, all default modules are working.

My php.ini:

extension_dir = "/usr/lib/php5/20090626"
extension=mongo.so

Mongo.so is in same location as written above.
But when I run php -m in console to check loaded modules, “mongo” isn’t listed there.

I can’t use dl('mongo.so') to load module at runtime, because this function was deprecated in PHP 5.3.

May be I should recompile mongo somehow, I just don’t know how to do that because I’m not very good in *nix commands.

Thanks for your help!

UPDATE
Also may be it’s worth saying that before my mongo.so was in /usr/lib/php5/20060613 and I manually copied it to "/usr/lib/php5/20090626" because it seems that after updating my PHP all modules are located there.

  • 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-05-26T18:09:44+00:00Added an answer on May 26, 2026 at 6:09 pm

    The extension module api has changed between php5.2 and php5.3. When php tries to load an extension module both sides have to “present” an api magic key that identifies the api version. If those numbers don’t match the module is not loaded/activated.

    Try sudo pecl install mongo again to get an extension module that fits your new php version.

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

Sidebar

Related Questions

So I've just installed XAMPP today, and I noticed that the index.php had a
I'm trying to set up MongoDB with PHP and WAMP. I had WAMP 64
I know I can use preg_match but I was wondering if php had a
I'm building a webapp with MongoDB/PHP, and everything's going great... except one thing. My
I had PHP 5.2.2 installed on a previous box (also WinXP Pro sp3) and
So on my test machine, I had PHP installed with Apache, and I had
I just had some basic php questions to further my understanding as I learn,
I had made some questions regarding PHP-GTK (there are only 4 php-gtk tagged questions
I am not familiar with PHP at all and had a quick question. I
I've consistently had an issue with parsing XML with PHP and not really found

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.