问题描述
php --version
/usr/lib64/php/modules/module.so:无法打开共享对象文件:在第0行的Unknown中没有这样的文件或目录
/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)(内置:2013年12月11日03:29:57) 版权所有(c)1997-2010 The PHP Group Zend Engine v2.3.0,版权所有(c)1998-2010 Zend Technologies
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
推荐答案
-
我检查了/etc/php.d/
I check all file in : /etc/php.d/
此行是mcrypt.ini
It was mcrypt.ini with this line
但是module.so在/usr/lib64/php/modules/
but module.so not exist in /usr/lib64/php/modules/
-
我用yum install mcrypt重新安装了mcrypt,结果在/usr/lib64/php/modules/
I reinstalled mcrypt with yum install mcrypt and the result I have mcryp.so in /usr/lib64/php/modules/
所以现在只需更正mcrypt.ini中的行并进行
so now just correct the line in mcrypt.ini and make
现在一切正常
这篇关于PHP无法加载动态库'/usr/lib64/php/modules/module.so的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!