From cb75568010a542e1ff0a680efecfecb61a98c25e Mon Sep 17 00:00:00 2001 From: Kristina Chodorow Date: Mon, 22 Feb 2010 19:29:54 +0000 Subject: [PATCH] timeout option and permission denied error git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@295379 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mongo/mongo/construct.xml | 9 +++++++++ reference/mongo/mongoconnectionexception.xml | 17 +++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/reference/mongo/mongo/construct.xml b/reference/mongo/mongo/construct.xml index f3c104c8d3..89bf25eba5 100644 --- a/reference/mongo/mongo/construct.xml +++ b/reference/mongo/mongo/construct.xml @@ -120,6 +120,15 @@ $mongo->selectDB("foo")->command(array("distinct" => "bar", "key" => "age")); database connection. + + + "timeout" + + + For how long the driver should try to connect to the database (in + milliseconds). + + diff --git a/reference/mongo/mongoconnectionexception.xml b/reference/mongo/mongoconnectionexception.xml index eba1d71fa8..d0c0f23a2b 100644 --- a/reference/mongo/mongoconnectionexception.xml +++ b/reference/mongo/mongoconnectionexception.xml @@ -114,6 +114,23 @@ "server" instead of "$server". + + + Permission denied + + + This means that the socket could not be opened due to permissions issues. + On Red Hat variants, this can be caused by a default setting that does not + allow Apache to create network connections. You can override this setting + by running: + + + + then restarting Apache. + +