LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   PHP Warning: PHP Startup: Unable to load dynamic library (https://www.linuxquestions.org/questions/linux-newbie-8/php-warning-php-startup-unable-to-load-dynamic-library-4175525947/)

jojanmpaul 11-20-2014 12:02 AM

PHP Warning: PHP Startup: Unable to load dynamic library
 
Hi,

I am getting the following PHP warning while,
php -v
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: Sep 10 2014 05:27:26)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

Please let me know the resolution for this.

jojanmpaul 11-20-2014 12:10 AM

Quote:

Originally Posted by jojanmpaul (Post 5272282)
Hi,

I am getting the following PHP warning while,
php -v
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: Sep 10 2014 05:27:26)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

Please let me know the resolution for this.


cat /etc/php.d/mcrypt.ini
; Enable mcrypt extension module
extension=module.so

but module.so not exist in /usr/lib64/php/modules/

jojanmpaul 11-20-2014 12:37 AM

Resolution :-
uninstall the php-mcrypt and re install the suitable rpm

php -v
PHP 5.3.3 (cli) (built: Sep 10 2014 05:27:26)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

cat /etc/php.d/mcrypt.ini
; Enable mcrypt extension module
extension=mcrypt.so

now mcrypt.so exist in /usr/lib64/php/modules/mcrypt.so


All times are GMT -5. The time now is 11:37 PM.