Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do I need php-fpm to serve MongoDB persistent connections

I have an outdated apache/php_mod configuration on my servers. Will PHP persist connections as in documentation without having php-fpm or it is required?

like image 801
FanAs Avatar asked Nov 08 '22 10:11

FanAs


1 Answers

The PHP MongoDB driver is often used with PHP-FPM on nginx.
However, you do not need PHP-FPM on Apache to persist connections.

Anyways, make sure to use a MongoDB/Driver version 1.2 or newer or you may not gain any performance.

Also, take a look at the MongoDB documentation of compatible PHP drivers.

like image 104
wp78de Avatar answered Nov 14 '22 21:11

wp78de