svn: /phpdoc/en/trunk/reference/mongo/ configure.xml mongodb/authenticate.xml
| From: | Kristina Chodorow | Date: | Thu, 25 Feb 2010 16:22:04 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/mongo/ configure.xml mongodb/authenticate.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6137@lists.php.net to get a copy of this message | ||
kristina Thu, 25 Feb 2010 16:22:04 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=295504
Log:
logout and install notes
Changed paths:
U phpdoc/en/trunk/reference/mongo/configure.xml
U phpdoc/en/trunk/reference/mongo/mongodb/authenticate.xml
Modified: phpdoc/en/trunk/reference/mongo/configure.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/configure.xml 2010-02-25 14:37:49 UTC (rev 295503)
+++ phpdoc/en/trunk/reference/mongo/configure.xml 2010-02-25 16:22:04 UTC (rev 295504)
@@ -20,7 +20,7 @@
$ sudo pecl install mongo
]]>
- </programlisting>
+ </programlisting>
</para>
<para>
@@ -29,8 +29,12 @@
<![CDATA[
extension=mongo.so
]]>
- </programlisting>
+ </programlisting>
</para>
+
+ <para>
+ If pecl runs out of memory, make sure memory_limit in php.ini is set to at least 32M.
+ </para>
</section>
<section>
@@ -101,12 +105,22 @@
</para>
<para>
- Precompiled binaries are available from
+ If you are using XAMPP, you may be able to compile the driver with the
+ following command:
+ <programlisting>
+<![CDATA[
+sudo /Applications/XAMPP/xamppfiles/bin/pecl install mongo
+]]>
+ </programlisting>
+ </para>
+
+ <para>
+ If you are using MAMP (or XAMPP and the above command does not work),
+ precompiled binaries are available from
<link xlink:href="&url.mongodb.github.downloads;">Github</link>
(download the latest one with "osx" in the name that matches your version of
- PHP). These for use with MAMP and XAMPP, which come without the headers
- necessary to compile the extension from scratch. Extract mongo.so from the
- archive and add it to MAMP or XAMPP's extension directory. Add
+ PHP). Extract mongo.so from the archive and add it to MAMP or XAMPP's
+ extension directory. Add
<programlisting>
<![CDATA[
extension=mongo.so
@@ -130,6 +144,22 @@
(Thanks to <link
xlink:href="&url.mongodb.tweet.gentoo;">@riklaunim</link>)
</para>
</section>
+ <section>
+ <title>Fedora</title>
+ <para>
+ If you don't want to modify php.ini directly, you can create a separate
+ mongo.ini file. Within the /etc/php.d directory, create a subdirectory named
+ mongo (or something else you like). In the mongo directory, create a
+ mongo.ini file. Put the following in your mongo.ini file:
+ <programlisting>
+<![CDATA[
+extension=mongo.so
+
+; any other mongo options you'd like (see the Runtime Configuration section)
+]]>
+ </programlisting>
+ </para>
+ </section>
</section>
<section>
Modified: phpdoc/en/trunk/reference/mongo/mongodb/authenticate.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongodb/authenticate.xml 2010-02-25 14:37:49 UTC (rev 295503)
+++ phpdoc/en/trunk/reference/mongo/mongodb/authenticate.xml 2010-02-25 16:22:04 UTC (rev 295504)
@@ -40,6 +40,19 @@
]]>
</programlisting>
</para>
+ <para>
+ Once a connection has been authenticated, it can only be un-authenticated by
+ using the "logout" database command:
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+$db->command(array("logout" => 1));
+
+?>
+]]>
+ </programlisting>
+ </para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;