Mongo driver for php only works with mpm_prefork?

Asked

Viewed 45 times

0

Seeking a better performance for my application I changed the MPM of apache of prefork for event, but when restarting apache with the new processing module the mongodb does not work, while accessing the log file of the apache I checked the following line:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php-zts/modules/mongo.so' - /usr/lib64/php-zts/modules/mongo.so: cannot open shared object file: No such file or directory in Unknown on line 0

I also tried to use the MPM worker and reinstall the drive Mongo through the PECL including after the command pecl clear-cache, but the Mongo extension only works with the MPM prefork.

1 answer

0


After finding my own question here while searching for the same answer, but now with a new server without users I plunged into the net searching for answers...

I discovered it had nothing to do with the module Mongodb and yes to the PHP using the Apache with a module MPM threaded.

Follow the link that briefly answers my question coming directly from the manual of PHP: http://php.net/manual/en/faq.installation.php#Faq.installation.apache2

Browser other questions tagged

You are not signed in. Login or sign up in order to post.