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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:59:02+00:00 2026-06-13T05:59:02+00:00

Unfortunately I’m unable to fix Class ‘MongoPool’ not found error. Rechecked everything in configs

  • 0

Unfortunately I’m unable to fix Class 'MongoPool' not found error. Rechecked everything in configs and everything looks normal to me 🙁 Spent 4 hours on this already 🙁

I’m using:

  • Ubuntu 12.04
  • nginx 1.1.19
  • php 5.3.10-1ubuntu3.4 as php-fpm extension to nginx
  • mongodb driver 1.3.0RC1-dev

Configuration info:

  • my phpinfo() output is here
  • nginx.conf is here
  • fastcgi_params is here
  • php.ini is here
  • php-fpm.conf is here

mongo.ini in php folder is this

extension=mongo.so
mongo.native_long = true
mongo.utf8 = 1

/etc/php5/fpm/pool.d/www.conf is pretty short too

[www]

user = www-data
group = www-data
listen = /var/run/php-fpm.sock
pm = dynamic
pm.max_children = 10
pm.start_servers = 4
pm.min_spare_servers = 2
pm.max_spare_servers = 6
access.log = /var/www/log/$pool.access.log
;chroot = /var/www/
chdir = /

Could you please take a look at my configs and help me ?

Test page is this

<?php
MongoPool::setSize(2);
?>

nginx server’s config is

server {
    root /usr/share/nginx/www;
    index index.php index.html index.htm;

    server_name localhost 192.168.1.149;

    location / {
        try_files $uri $uri/ /index.html;
    }

    location /doc/ {
        alias /usr/share/doc/;
        autoindex on;
        allow 127.0.0.1;
        deny all;
    }

        location ~ \.php$ {
                try_files $uri =404;
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_pass unix:/var/run/php-fpm.sock;
                fastcgi_index index.php;
                include fastcgi_params;
        }
}

Log snippet from nginx

2012/10/21 06:35:48 [error] 21418#0: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Class 'MongoPool' not found in /usr/share/nginx/www/test2.php on line 2
PHP message: PHP Stack trace:
PHP message: PHP   1. {main}() /usr/share/nginx/www/test2.php:0" while reading response header from upstream, client: 192.168.1.2, server: localhost, request: "GET /test2.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.149"
  • 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-13T05:59:03+00:00Added an answer on June 13, 2026 at 5:59 am

    As user eicto hinted above creators of MongoDb Driver for PHP removed this class from trunk version of the driver about 2 months ago (see this commit).

    We will be adding back MongoPool and couple of the other methods for backwards compatibility, but they won’t do anything and just issue E_DEPRECATED warning

    Take care when using development versions.

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

Sidebar

Related Questions

Unfortunately cabal-dev ghci does not work in this project, i get an error: Loading
unfortunately I have not found anything yet, maybe anyone could help me or give
Unfortunately, the problem is not more specific than that. I've found a few examples
Unfortunately their Wiki is down for maintenance and the web is not being helpful.
Unfortunately I haven't coded Java for about five years and I absolutely can not
Unfortunately I am not writing this question from my Developing PC so I might
Unfortunately I've found that sometimes code I'm writing, while perfectly fine at run-time, causes
Unfortunately we do not have the required DCOM access to the SQL Server mentioned
Unfortunately, I'm not familiar with Perl, so asking here. Actually I'm using FCGI with
Unfortunately the solutions have not worked yet; setting result.values pointer to 0 doesn't actually

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.