PHP无法加载动态库'/usr/lib64/php/modules/module.so

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21654392/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 04:20:05  来源:igfitidea点击:

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

phpmodulecentos6

提问by user1824955

php --version

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

PHP 警告:PHP 启动:无法加载动态库 '/usr/lib64/php/modules/module.so' -

/usr/lib64/php/modules/module.so: 无法打开共享对象文件:第 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

回答by user1824955

  1. I check all file in : /etc/php.d/

  2. It was mcrypt.ini with this line

    extension=module.so

  1. 我检查所有文件:/etc/php.d/

  2. 这条线是 mcrypt.ini

    扩展=模块.so

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

但是 /usr/lib64/php/modules/ 中不存在 module.so

  1. I reinstalled mcrypt with yum install mcrypt and the result I have mcryp.so in /usr/lib64/php/modules/

  2. so now just correct the line in mcrypt.ini and make

  1. 我用 yum install mcrypt 重新安装了 mcrypt,结果我在 /usr/lib64/php/modules/ 中有 mcryp.so

  2. 所以现在只需更正 mcrypt.ini 中的行并制作

extension=mcrypt.so

扩展名=mcrypt.so

Now all is ok

现在一切正常