(/usr/lib64/php/modules/redis.so.so: cannot open shared object file: No Undefined symbol: php_json_decode_ex), /usr/lib64/php/modules/redis.so.so usr/lib64/php/modules/redis.so (/usr/lib64/php/modules/redis.so: With Zend OPcache v7.4.5, Copyright ©, by Zend TechnologiesĮrror PHP PHP Startup: Unable to load dynamic library ‘redis.so’ (tried: T10:07:01+00:00 Zend Engine v3.4.0, Copyright © Zend Technologies PHP Warning: PHP Startup: Unable to load dynamic library ‘redis.so’ (tried: /usr/lib64/php/modules/redis.so (/usr/lib64/php/modules/redis.so: undefined symbol: php_json_decode_ex), /usr/lib64/php/modules/redis.so.so (/usr/lib64/php/modules/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 dev/mapper/cl-home xfs 20G 171M 20G 1% /home This possibly needs a JIRA as I believe it has come up before.Some more other detail that can be useful:įilesystem Type Size Used Avail Use% Mounted on This makes sure that the "json" extension will be loaded by the dynamic loader before the "mongo" module is.īut basically remove the mongo.so from "php.ini" and put it in it's own file with higher loading order than the json extension. /mods-available/mongo.ini 30-mongo.iniĪt end of this you should have a structure that looks like this $/etc/php5$ tree Remove any other references to mongo.so from other files such as php.iniĬreate symlinks in each of the cli and apache2 directories as required for use as so: In your /etc/php/mods-available directory (or as appropriate to platform) create a separate mongo.ini with the following:.Since others are likely to come across this I will outline the whole process: The issue is with the loading order, so the json extension needs to be loaded before mongo.so is loaded. I googled it and the only similar thing I was able to find is this, which is not really relevant, but having no other options I still tried steps there with no success. I checked my /usr/lib/php5/20121212/ and saw that there is actually a file mongo.so. Undefined symbol: php_json_encode in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library I checked my error.log and I can see the following line there: On the other hand I can clearly see extension=mongo.so in my php.ini. You should add "extension=mongo.so" to php.iniĪfter this I restarted apache ( 2.4.9), but my phpinfo() told me that mongo is not installed. Install ok: channel:///mongo-1.5.1Ĭonfiguration option "php_ini" is not set to php.ini location With no I was able to install it successufully and the ending message looked like this: Build process completed successfully Where I selected No because when I tried yes, it was failing with error. done: 188,885 bytesīuild with Cyrus SASL (MongoDB Enterprise Authentication) support? : Starting to download mongo-1.5.1.tgz (188,885 bytes) It started successfully with: downloading mongo-1.5.1.tgz. After installation of Mongo 2.6.0 which was successful, I tried to upgrade php mongo driver on ubuntu 12.04 with the following command: sudo pecl upgrade mongo.
0 Comments
Leave a Reply. |