FanAs
FanAs

Reputation: 199

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?

Upvotes: 5

Views: 429

Answers (1)

wp78de
wp78de

Reputation: 18970

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.

Upvotes: 1

Related Questions