Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 3 additions & 17 deletions source/php-drivers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,26 +117,12 @@ system. See the `PHP manual <https://www.php.net/manual/en/install.php>`__
for download and installation instructions.

Install the PHP MongoDB Extension before you install the MongoDB PHP
Library. You can install the extension by using `PECL
<https://www.php.net/manual/en/mongodb.installation.php>`__ on the
command line:
Library. You can install the extension by using :github:`pie
</php/pie>` on the command line:

.. code-block:: sh

sudo pecl install mongodb

After installation completes, add the following line to your ``php.ini``
file:

.. code-block:: text

extension=mongodb.so

.. note::

On some systems, there might be multiple ``.ini`` files for
individual SAPIs, such as CLI, FPM. Make sure to enable the extension
in all SAPIs that you use.
pie install mongodb/mongodb-extension

Then, install the PHP library by using `Composer
<https://getcomposer.org/>`__. Run the following command from your
Expand Down