We use cookies
We use cookies to optimize our website. By continuing to browse the site, you agree to our use of cookies.
New design
Control panel
  • Русский
  • Українська
  • English
  • UAH
  • USD
  • RUB
  • EUR
  • 0-800-307-307 Hotline
  • +38 (044) 392-74-33 Kiev
  • +38 (057) 728-39-00 Kharkiv
  • +38 (056) 794-38-31 Dnipro
  • +38 (032) 229-58-93 Lviv
  • +38 (048) 738-57-70 Odessa
  • +38(093) 170-15-42  Life
  • +38 (067) 400-88-44 Kievstar
  • +1(888)393-24-51  USA, Toll free
  • +44(131)507-01-14  Great Britain
  • +7 (499) 348-28-61 Moscow

2.8.18. Working with mongodb

To enable MongoDB module, do the following:

  1. Openup PHP settings.
  2. Check the box next to "mongodb"In the block"Modules».
  3. Save your changes.

Important points

  • Only MySQL databases can be hosted on the hosting. The mongodb extension has been added to work with external databases.
  • The mongodb extension is available on PHP 5.4 and higher. On versions PHP 5.4 and 5.5, the correct operation of the extension is not guaranteed, since they only have an outdated extension - for PHP 5.4 version 1.2.11 is installed, for PHP 5.5 version 1.6.0.
  • To work with MongoDB you need install library and open port 27017.

To work with mongodb, you need to install the composer extension, for this:

  1. Connect over SSH to the hosting server.
  2. Change to the desired directory by running the command:
    cd ~/example.com/www/

    Instead example.com/www/ specify the path to the desired directory.

  3. Install the extension by running the command:
    composer require mongodb/mongodb
  4. Open port for outgoing connections 27017.