mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix <section> nesting in mongo extension install docs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338534 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
a143828c7e
commit
70733ff323
1 changed files with 63 additions and 53 deletions
|
@ -103,6 +103,7 @@ extension=mongo.so
|
|||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</section>
|
||||
|
||||
<section xml:id="mongo.installation.nix">
|
||||
<title>Installing on *NIX</title>
|
||||
|
@ -165,37 +166,41 @@ extension=php_mongo.dll
|
|||
</note>
|
||||
</section>
|
||||
|
||||
<section xml:id="mongo.installation.osx">
|
||||
<title>OS X</title>
|
||||
<para>
|
||||
In most cases installing from pecl is the easiest way:
|
||||
<programlisting role="shell">
|
||||
<section xml:id="mongo.installation.osx">
|
||||
<title>OS X</title>
|
||||
|
||||
<para>
|
||||
In most cases installing from pecl is the easiest way:
|
||||
<programlisting role="shell">
|
||||
<![CDATA[
|
||||
$ sudo pecl install mongo
|
||||
]]>
|
||||
</programlisting>
|
||||
</para>
|
||||
<para>
|
||||
If you are using <link xlink:href="&url.mac.homebrew;">Homebrew</link>, the
|
||||
PHP tap includes formulae for the driver. For example, you might install the
|
||||
driver for PHP 5.6 using the following command:
|
||||
<programlisting role="shell">
|
||||
</programlisting>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
If you are using <link xlink:href="&url.mac.homebrew;">Homebrew</link>, the
|
||||
PHP tap includes formulae for the driver. For example, you might install the
|
||||
driver for PHP 5.6 using the following command:
|
||||
<programlisting role="shell">
|
||||
<![CDATA[
|
||||
$ brew install php56-mongo
|
||||
]]>
|
||||
</programlisting>
|
||||
</para>
|
||||
<para>
|
||||
If you are using <link xlink:href="&url.xampp;">XAMPP</link>, note that it
|
||||
has its own pecl binary and php.ini configuration. You should be able to
|
||||
install the driver with the following command:
|
||||
<programlisting role="shell">
|
||||
</programlisting>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
If you are using <link xlink:href="&url.xampp;">XAMPP</link>, note that it
|
||||
has its own pecl binary and php.ini configuration. You should be able to
|
||||
install the driver with the following command:
|
||||
<programlisting role="shell">
|
||||
<![CDATA[
|
||||
$ sudo /Applications/XAMPP/xamppfiles/bin/pecl install mongo
|
||||
]]>
|
||||
</programlisting>
|
||||
</para>
|
||||
<note>
|
||||
</programlisting>
|
||||
</para>
|
||||
|
||||
<note>
|
||||
<title>Xcode dependency for compiling on OS X</title>
|
||||
<para>
|
||||
Compiling the driver on OS X will require Xcode developer tools, which may
|
||||
|
@ -204,25 +209,28 @@ $ sudo /Applications/XAMPP/xamppfiles/bin/pecl install mongo
|
|||
<link xlink:href="&url.apple.clt;">Command Line Tools</link> package.
|
||||
</para>
|
||||
</note>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<section xml:id="mongo.installation.gentoo">
|
||||
<title>Gentoo</title>
|
||||
<para>
|
||||
Gentoo has a package for the PHP PECL driver called dev-php/pecl-mongo, which can be
|
||||
installed with:
|
||||
</para>
|
||||
<programlisting role="shell">
|
||||
<section xml:id="mongo.installation.gentoo">
|
||||
<title>Gentoo</title>
|
||||
|
||||
<para>
|
||||
Gentoo has a package for the PHP PECL driver called dev-php/pecl-mongo, which can be
|
||||
installed with:
|
||||
</para>
|
||||
|
||||
<programlisting role="shell">
|
||||
<![CDATA[
|
||||
$ sudo emerge -va dev-php/pecl-mongo
|
||||
]]>
|
||||
</programlisting>
|
||||
</programlisting>
|
||||
|
||||
<para>
|
||||
If you use PECL, you may get an error that libtool is the wrong version.
|
||||
Compiling from source you'll need to run aclocal and autoconf.
|
||||
</para>
|
||||
<programlisting role="shell">
|
||||
<para>
|
||||
If you use PECL, you may get an error that libtool is the wrong version.
|
||||
Compiling from source you'll need to run aclocal and autoconf.
|
||||
</para>
|
||||
|
||||
<programlisting role="shell">
|
||||
<![CDATA[
|
||||
$ phpize
|
||||
$ aclocal
|
||||
|
@ -231,26 +239,28 @@ $ ./configure
|
|||
$ make
|
||||
$ sudo make install
|
||||
]]>
|
||||
</programlisting>
|
||||
</section>
|
||||
<section xml:id="mongo.installation.fedora">
|
||||
<title>Red Hat</title>
|
||||
<para>
|
||||
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 role="shell">
|
||||
</programlisting>
|
||||
</section>
|
||||
|
||||
<section xml:id="mongo.installation.fedora">
|
||||
<title>Red Hat</title>
|
||||
|
||||
<para>
|
||||
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 role="shell">
|
||||
<![CDATA[
|
||||
$ /usr/sbin/setsebool -P httpd_can_network_connect 1
|
||||
]]>
|
||||
</programlisting>
|
||||
Then restart Apache. (This issue has also occurred with SELinux.)
|
||||
</para>
|
||||
</section>
|
||||
</programlisting>
|
||||
Then restart Apache. (This issue has also occurred with SELinux.)
|
||||
</para>
|
||||
</section>
|
||||
|
||||
<section xml:id="mongo.installation.thirdparty">
|
||||
|
|
Loading…
Reference in a new issue