• 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

Issue Unable to install php driver for mongodb

Muthukumar

New Pleskian
I am using Plesk Onyx 17.0.17 and selected php version is 5.6, i am unable to install mongo.so, if check terminal means that shows "mongo.so'", but i am unable to connect via php, i think multple versions of PHP makes conflict,
Kindly suggest any solution..?
 
By default there is no mongo module loaded for Plesk PHP5.6 version:

# /opt/plesk/php/5.6/bin/php -m | grep mongo
#

You can compile by yourself it with

# yum install plesk-php56-devel gcc make
# /opt/plesk/php/5.6/bin/pecl install mongo
# echo "extension=mongo.so" > /opt/plesk/php/5.6/etc/php.d/mongo.ini
# plesk bin php_handler --reread

After that you can see that mongo.so module is loaded:

# /opt/plesk/php/5.6/bin/php -m | grep mongo
mongo
 
Back
Top