Mongodb php extension not loading. Linux centos 6 Plesk onyx php 5.6.31 -


i have installed lastest mongodb php driver on linux centos 6 plesk onyx using following commands.

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 

i have added extension=mongodb.so php.ini file. changed cli version php 5.3 5.6 before running install php needed @ least 5.4 install continue.

the mongodb section in in phpinfo() page. extension not loaded when test in php page.

when try reinstall message:

php warning: php startup: unable load dynamic library '/opt/plesk/php/5.6/lib64/php/modules/mongo.so' - /opt/plesk/php/5.6/lib64/php/modules/mongo.so: cannot open shared object file: no such file or directory in unknown on line 0 pecl/mongodb installed , same released version 1.2.9 install failed

also, line says /opt/plesk/php/5.6/lib64/php/modules/mongo.so refers mongo.so when in actual fact file present in modules folder mongodb.so

does have suggestions or experience please?

for facing same issue. fixed changing extension name in following file /opt/plesk/php/5.6/etc/php.d/mongodb.ini mongo.so mongodb.so

and remember use new mongo driver class ie mongodb\driver\


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -