• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question MongoDb php

Simpleweb

New Pleskian
Hello to all,
i have a local test installation with ubuntu 14.04 and plesk 12.5
How can i install php driver for mongodb? I need a simple how to (i'm new) to install mongodb into my server.
Thanks
 
For CentOS and PHP7.0:

# yum install plesk-php70-devel make gcc openssl-devel
# /opt/plesk/php/7.0/bin/pecl install mongodb
# echo "mongodb.so" > /opt/plesk/php/7.0/etc/php.d/mongodb.ini
# plesk bin php_handler --reread
 
Thanks but I'm on ubuntu 14.04 and I have multiple php version but I'm using 5.6 only. Can u tell me how can I do?

Inviato dal mio GT-I9505 utilizzando Tapatalk
 
Not sure about Ubuntu, but I think it should be something like

# apt-get install gcc make libssl-dev plesk-php56-dev
# /opt/plesk/php/5.6/bin/pecl install mongodb
# echo "mongodb.so" > /opt/plesk/php/5.6/etc/php.d/mongodb.ini
# plesk bin php_handler --reread
 
For CentOS and PHP7.0:

# yum install plesk-php70-devel make gcc openssl-devel
# /opt/plesk/php/7.0/bin/pecl install mongodb
# echo "mongodb.so" > /opt/plesk/php/7.0/etc/php.d/mongodb.ini
# plesk bin php_handler --reread
How to install for php5.6 in cent os?
 
Hi Muthukumar,

How to install for php5.6 in cent os?
this doesn't differ much from the example, given by IgorG.
Code:
# yum install plesk-php56-devel make gcc openssl-devel
# /opt/plesk/php/5.6/bin/pecl install mongodb
# echo "mongodb.so" > /opt/plesk/php/5.6/etc/php.d/mongodb.ini
# plesk bin php_handler --reread
 
Back
Top