Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP Warning: Unable to load dynamic library '/usr/lib64/php/modules/solr.so' undefined symbol: php_json_decode_ex in Unknown on line 0

After success install I'm getting the below error

 NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/solr.so' - /usr/lib64/php/modules/solr.so: undefined symbol: php_json_decode_ex in Unknown on line 0

can any one help me out in this Issue ?

my server details are as:- php : PHP 5.4.16 (cli) (built: Aug 11 2016 21:24:59) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologie

nginx: nginx version: nginx/1.10.1

When I'm executing this php -v

I'm getting the below message:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/solr.so' - /usr/lib64/php/modules/solr.so: undefined symbol: php_json_decode_ex in Unknown on line 0

PHP 5.4.16 (cli) (built: Aug 11 2016 21:24:59) Copyright (c) 1997-2013 The PHP Group

Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

like image 947
vijaybir singh Avatar asked Feb 06 '23 13:02

vijaybir singh


1 Answers

After doing a lot of experiments I finally fixed the issue. The solution is as below:

cd /etc/php.d/

And create a file named solr.ini.

Added this line:

extension=solr.so

And now I have to remove the above extension from the php.ini file and restart php-fpm

That's all, worked for me.

like image 161
vijaybir singh Avatar answered Feb 08 '23 04:02

vijaybir singh