Mongodb support — CyberPanel - WebHosting Control Panel for OpenLiteSpeed
CyberLoader

Mongodb support

Please advice how can i add mongodb support for php, there is no extension for this and it would be great if you will add option to install mongodb server and admin console)

can i install it manually (php module)?

Comments

  • well i have found this topic
    https://forums.cyberpanel.net/discussion/1111/install-mailparse-extension-or-others-tutorial/p1

    lets say you want install mongodb support for php71
    under root

    yum install re2c
    yum install lsphp71-devel make gcc glibc-devel zlib-devel
    /usr/local/lsws/lsphp71/bin/pecl install mongodb
    chmod 755 /usr/local/lsws/lsphp71/lib64/php/modules/mongodb.so

    then open cyberpanel go to SERVER-> PHP -> Edit configs and select advanced
    find section "Dynamic Extensions" or just add
    add line extension=mongodb.so
    http://prntscr.com/mllwd1
    save and it will works
    how to install mongodb read on official site
  • Hi there,

    Any guidelines I can use to install MongoDB extension on Ubuntu 18.04 ?
  • Hi @hennaboy, thanks for your answer, but I'd like to install the MongoDB PECL extension for PHP 7.3 in Cyberpanel.

    Any guidelines to do so ?
  • its all the same i think, but you need to replace
    yum install re2c
    with
    apt-get install re2c
  • Type your comment> @pashkasan said:
    > well i have found this topic
    > https://forums.cyberpanel.net/discussion/1111/install-mailparse-extension-or-others-tutorial/p1
    >
    > lets say you want install mongodb support for php71
    > under root
    >
    > yum install re2c
    > yum install lsphp71-devel make gcc glibc-devel zlib-devel
    > /usr/local/lsws/lsphp71/bin/pecl install mongodb
    > chmod 755 /usr/local/lsws/lsphp71/lib64/php/modules/mongodb.so
    >
    > then open cyberpanel go to SERVER-> PHP -> Edit configs and select advanced
    > find section "Dynamic Extensions" or just add
    > add line extension=mongodb.so
    > http://prntscr.com/mllwd1
    > save and it will works
    > how to install mongodb read on official site

    I used this for php72 and worked well thanks
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!