php-doc-en/reference/mongodb/configure.xml

96 lines
1.9 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<article xml:id="mongodb.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.install;
<section xml:id="mongodb.installation.php">
<title>PHP</title>
<para>
Run:
<programlisting role="shell">
<![CDATA[
$ sudo pecl install mongodb
]]>
</programlisting>
</para>
<para>
Add the following line to your php.ini file:
<programlisting role="ini">
<![CDATA[
extension=mongodb.so
]]>
</programlisting>
</para>
<para>
Windows users should include <filename>php_mongodb.dll</filename> into &php.ini;
</para>
</section>
<section xml:id="mongodb.installation.hhvm">
<title>HHVM</title>
<para>
HHVM users should download the latest from
<link
xlink:href="https://s3.amazonaws.com/drivers.mongodb.org/hhvm/index.html">S3</link>
for the time being.
</para>
<para>
Once downloaded, execute the following steps:
<programlisting><![CDATA[
cd libbson
./autogen.sh
cd ..
cd libmongoc
./autogen.sh
cd ..
hphpize
cmake .
make -j 5
make install
]]></programlisting>
</para>
<para>
Add the following line to your php.ini file (usually found in /etc/hhvm):
<programlisting role="ini">
<![CDATA[
hhvm.dynamic_extension_path=/usr/local/hhvm/3.9.1/lib/hhvm/extensions/20150212
hhvm.dynamic_extensions[mongodb]=mongodb.so
]]>
</programlisting>
</para>
</section>
</article>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->