mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
timeout option and permission denied error
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@295379 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
773cd45365
commit
cb75568010
2 changed files with 26 additions and 0 deletions
|
@ -120,6 +120,15 @@ $mongo->selectDB("foo")->command(array("distinct" => "bar", "key" => "age"));
|
|||
database connection.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
<literal>"timeout"</literal>
|
||||
</para>
|
||||
<para>
|
||||
For how long the driver should try to connect to the database (in
|
||||
milliseconds).
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
</listitem>
|
||||
|
|
|
@ -114,6 +114,23 @@
|
|||
"server" instead of "$server".
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
<literal>Permission denied</literal>
|
||||
</para>
|
||||
<para>
|
||||
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:
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
$ /usr/sbin/setsebool -P httpd_can_network_connect 1
|
||||
]]>
|
||||
</programlisting>
|
||||
then restarting Apache.
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue