svn: /phpdoc/en/trunk/reference/mongo/ configure.xml
| From: | Kristina Chodorow | Date: | Mon, 14 Mar 2011 21:46:16 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/mongo/ configure.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-7855@lists.php.net to get a copy of this message | ||
kristina Mon, 14 Mar 2011 21:46:16 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=309236
Log:
RedHat security settings section
Changed paths:
U phpdoc/en/trunk/reference/mongo/configure.xml
Modified: phpdoc/en/trunk/reference/mongo/configure.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/configure.xml 2011-03-14 21:42:47 UTC (rev 309235)
+++ phpdoc/en/trunk/reference/mongo/configure.xml 2011-03-14 21:46:16 UTC (rev 309236)
@@ -222,21 +222,21 @@
</programlisting>
</section>
<section xml:id="mongo.installation.fedora">
- <title>Fedora</title>
+ <title>Red Hat</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:
+ This includes Fedora and CentOS.
+ </para>
+ <para>
+ The default Apache settings on these systems do not let requests make
+ network connections, meaning that the driver will get "Permission denied"
+ errors when it tries to connect to the database. If you run into this, try
+ running:
<programlisting>
<![CDATA[
-
-extension=mongo.so
-
-; any other mongo options you'd like (see the Runtime Configuration section)
-
+$ /usr/sbin/setsebool -P httpd_can_network_connect 1
]]>
</programlisting>
+ Then restart Apache. (This issue has also occurred with SELinux.)
</para>
</section>
</section>