- Notifications
You must be signed in to change notification settings - Fork 34
DOCSP-50960: Install with pie #278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
| @@ -65,25 +65,19 @@ Download and Install | |||||||||
| ||||||||||
.. code-block:: bash | ||||||||||
| ||||||||||
sudo pecl install mongodb | ||||||||||
pie install mongodb/mongodb-extension | ||||||||||
| ||||||||||
.. step:: Update your PHP configuration file | ||||||||||
.. tip:: Specify the PHP Extension Version | ||||||||||
| ||||||||||
To enable the ``mongodb`` extension in your PHP configuration file, add the | ||||||||||
following line to the top of your ``php.ini`` file: | ||||||||||
| ||||||||||
.. code-block:: none | ||||||||||
| ||||||||||
extension=mongodb.so | ||||||||||
| ||||||||||
.. tip:: | ||||||||||
| ||||||||||
You can locate your ``php.ini`` file by running the following command | ||||||||||
in your shell: | ||||||||||
To install a specific version of the {+extension-short+}, provide | ||||||||||
the version number as shown in the following command: | ||||||||||
| ||||||||||
.. code-block:: bash | ||||||||||
| ||||||||||
php --ini | ||||||||||
pie install mongodb/mongodb-extension^{+full-version+} | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The colon is missing: Suggested change
| ||||||||||
| ||||||||||
If you want to install a {+extension-short+} version before v1.21, | ||||||||||
use the :php:`pecl command <mongodb.installation#mongodb.installation.pecl>`. | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggested change
| ||||||||||
| ||||||||||
.. step:: Create a project directory | ||||||||||
| ||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
| @@ -58,7 +58,16 @@ directory: | |
| ||
.. code-block:: bash | ||
| ||
pecl upgrade mongodb-<version-number> | ||
pie install mongodb/mongodb-extension:^<version-number> | ||
| ||
.. tip:: Previous PHP Extension Versions | ||
| ||
To upgrade to a {+extension-short+} version before v1.21, | ||
use the following command: | ||
| ||
.. code-block:: bash | ||
| ||
pecl upgrade mongodb-<version-number> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. S: should we add a sudo here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The official pecl docs don't mention There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, since it's not in the pecl docs I'll remove | ||
| ||
To upgrade the PHP library version, replace ``<version-number>`` with the | ||
version number you want to upgrade to and run the following command in your | ||
|
Uh oh!
There was an error while loading. Please reload this page.