1 like 0 dislike
2.8k views
in Education & Reference by
php -v is showing error & if I run any PHP file same error is showing

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

2 Answers

0 like 0 dislike
by
I have fixed this to change the syntax of : nano /etc/php.d/mcrypt.ini

and marked out/comment the module.so line

; Enable mcrypt extension module ;extension=module.so

after this php -v is working…

php -v PHP 5.3.3 (cli) (built: Feb 22 2013 02:51:11) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
0 like 0 dislike
by
I think, and I also found other pages saying the same, that this should be changed to:

; Enable mcrypt extension module
extension=mcrypt.so

Disabling the line is probably not good. Just compare it with the other ini-Files in /etc/php.d

Related questions

0 like 0 dislike
3 answers 1.7k views
1 like 0 dislike
1 answer 2.1k views
0 like 0 dislike
1 answer 67 views
0 like 0 dislike
2 answers 99 views
0 like 0 dislike
1 answer 138 views
0 like 0 dislike
1 answer 75 views
1 like 0 dislike
1 answer 524 views
0 like 0 dislike
1 answer 232 views

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

...