Scenario :-
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
cat /etc/php.d/mcrypt.ini
; Enable mcrypt extension module
extension=module.so
but module.so not exist in /usr/lib64/php/modules/
Resolution :-
uninstall the php-mcrypt and reinstall the suitable rpm
rpm -e php-mcrypt-5.3.3-1.el6.rf.x86_64
wget ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/epel/6/x86_64/php-mcrypt-5.3.3-3.el6.x86_64.rpm
rpm -ivh php-mcrypt-5.3.3-3.el6.x86_64.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
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
cat /etc/php.d/mcrypt.ini
; Enable mcrypt extension module
extension=module.so
but module.so not exist in /usr/lib64/php/modules/
Resolution :-
uninstall the php-mcrypt and reinstall the suitable rpm
rpm -e php-mcrypt-5.3.3-1.el6.rf.x86_64
wget ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/epel/6/x86_64/php-mcrypt-5.3.3-3.el6.x86_64.rpm
rpm -ivh php-mcrypt-5.3.3-3.el6.x86_64.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
No comments:
Post a Comment