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)?
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)?
well i have found this topic
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
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 ?
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/p1lets say you want install mongodb support for php71
under rootyum 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.sothen open cyberpanel go to SERVER-> PHP → Edit configs and select advanced
find section “Dynamic Extensions” or just add
add line extension=mongodb.so
Screenshot by Lightshot
save and it will works
how to install mongodb read on official site
I used this for php72 and worked well thanks
How can I install it on php8.1
On this line : /usr/local/lsws/lsphp81/bin/pecl install mongodb
I’m getting ‘pecl command not found’
pls note , my reply was about 2 years ago, i am not using this panel now, better try to contact support
but for quick solution i think you need to select php.8.1 for shell first via admin, reboot system/relogin ssh,
if not helps try to find it “find / -name pecl”, but use version 8.1
hope all will be good)
mongodb is great solution dunno why they still not implemented it, its unsecure maybe or i dont know, maybe for not shared env or som but for private server who mostly use this panel i really have no idea