Mongo driver for php only works with mpm_prefork?

0

Looking for better performance for my application I've changed the MPM of apache from prefork to event , but when I restart apache with the new processing module o mongodb module does not work, when accessing the apache log file 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've also tried using MPM worker and reinstalling the mongo drive through PECL even after the pecl clear-cache command, but the mongo extension only works with MPM prefork .

    
asked by anonymous 12.11.2017 / 21:41

1 answer

0

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

I discovered that there was no module in the MongoDB module, but rather with PHP using Apache with an with threads.

Follow the link that briefly answers my question coming directly from the PHP manual: link

    
13.02.2018 / 01:53