Getting PHP warnings while running php -v on CLI - php

Getting below errors while running php -v on my server, it was running fine since many days and suddenly showing up this:
PHP Warning: PHP Startup: Unable to load dynamic library
'.//usr/local/sphinx/sphinx.so' - .//usr/local/sphinx/sphinx.so:
cannot open shared object file: No such file or directory in Unknown
on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'.//usr/local/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so'
- .//usr/local/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so:
cannot open shared object file: No such file or directory in Unknown
on line 0
PHP 5.2.17 (cli) (built: Apr 2 2012 18:43:50) Copyright (c) 1997-2010
The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend
Technologies with the ionCube PHP Loader v4.0.14, Copyright (c)
2002-2011, by ionCube Ltd.

Related

PHP Startup error: Unable to load dynamic library 'solr.so'

After upgrading my php on Centos 7 Linux machine, I began getting this error:
[root#ip-172-31-13-94 workarea]# php --version
PHP Warning: PHP Startup: Unable to load dynamic library 'solr.so' (tried: /usr/lib64/php/modules/solr.so (/usr/lib64/php/modules/solr.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/solr.so.so (/usr/lib64/php/modules/solr.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 7.4.13 (cli) (built: Nov 24 2020 10:03:34) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.13, Copyright (c), by Zend Technologies
How can I resolve this?

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
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.
Still got error. Realized you need to load solr.so after json.so, so the json symbols are in memory before solr is loaded, otherwise solr fails to load.
On centos and Red Hat Enterprise Server simply give solr the highest number out of the numbered ini files in /etc/php.d. You may just need to make it load after json.ini, but I'm loading it last and now it works. I named it 60-solr.ini and it started working.

PHP Unable to load dynamic library '/usr/lib64/php/modules/module.so

php --version
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/module.so' -
/usr/lib64/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.3.3 (cli) (built: Dec 11 2013 03:29:57)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
I check all file in : /etc/php.d/
It was mcrypt.ini with this line
extension=module.so
but module.so not exist in /usr/lib64/php/modules/
I reinstalled mcrypt with yum install mcrypt and the result I have mcryp.so in /usr/lib64/php/modules/
so now just correct the line in mcrypt.ini and make
extension=mcrypt.so
Now all is ok

PHP extension "mcrypt" must be loaded but no PHP source for my version?

I'm trying to install Magento but getting the error above. I've scoured the web for how to create the mcrypt extension (http://www.oldapps.com/php_programming_language.php?old_php=12364), but without luck because I can't find my version of PHP to install it (php 5.3.26).
I added mcrypt to the extensions list but now I just get this error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so, 9): image not found in Unknown on line 0
PHP 5.3.26 (cli) (built: Jul 7 2013 19:05:08)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
Scour the web for the source, try here: http://www.oldapps.com/php_programming_language.php?old_php=12364

Ubuntu 12.04 upgrade php 5.4 missing php5-ffmpeg

I updated php to version 5.4 but now I can not install the package php5-ffmpeg because it gives me this error:
php5-ffmpeg: Depends: phpapi-20090626
also if I try to write php-v gives me this warning:
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20100525/ffmpeg.so' - / usr/lib/php5/20100525/ffmpeg.so:
can not open shared object file: No such file or directory in Unknown on line 0
5.4.17RC1 PHP (cli) (built: Jun 22 2013 19:27:26)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
Some solution?

Categories