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

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

Related

why there are 2 php directories in C:\ and C:\xampp

I have 2 php directories. One in C:/ and the other in C:/xampp .
Have I installed php twice or is this normal.
I'am also getting a warning message when I try any php command
php -version
PHP Warning: Module 'fileinfo' already loaded in Unknown on line 0
Warning: Module 'fileinfo' already loaded in Unknown on line 0
PHP 7.4.3 (cli) (built: Feb 18 2020 17:29:46) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
Now if I want to edit the php.ini I can't decide which file to edit because in both extension=fileinfo is uncommented
You can open php.ini from below:

unable to download dynamic library

I want to install Composer on my Ubuntu 14.04LTS. But during installation I got this:
Some settings on your machine make composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The OpenSSL extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl
Then in php.ini I remove semicolon';' in line ;extension=php_openssl.dll
After this I've got:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/php_openssl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.6.2 (cli) (built: Oct 29 2014 06:55:23)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
Where can I get this library?
You use php.ini from windows machine. Use default from package manager. For Ubuntu apt-get.

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?

Getting PHP warnings while running php -v on CLI

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.

Categories