加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

PHP警告:PHP启动:????:无法初始化模块

发布时间:2020-12-13 13:15:38 所属栏目:PHP教程 来源:网络整理
导读:将php从5.1升级到5.2.10后,当php -v发生以下警告: # php -v PHP Warning: PHP Startup: fileinfo: Unable to initialize module Module compiled with module API=20050922,debug=0,thread-safety=0 PHP compiled with module API=20060613,thread-safety=0
将php从5.1升级到5.2.10后,当php -v发生以下警告:
# php -v
    PHP Warning:  PHP Startup: fileinfo: Unable to initialize module
    Module compiled with module API=20050922,debug=0,thread-safety=0
    PHP    compiled with module API=20060613,thread-safety=0
    These options need to match
     in Unknown on line 0
    PHP Warning:  PHP Startup: mcrypt: Unable to initialize module
    Module compiled with module API=20050922,thread-safety=0
    These options need to match
     in Unknown on line 0
    PHP Warning:  PHP Startup: memcache: Unable to initialize module
    Module compiled with module API=20050922,thread-safety=0
    These options need to match
     in Unknown on line 0
    PHP Warning:  PHP Startup: mhash: Unable to initialize module
    Module compiled with module API=20050922,thread-safety=0
    These options need to match
     in Unknown on line 0
    PHP Warning:  PHP Startup: mssql: Unable to initialize module
    Module compiled with module API=20050922,thread-safety=0
    These options need to match
     in Unknown on line 0
    PHP Warning:  PHP Startup: readline: Unable to initialize module
    Module compiled with module API=20050922,thread-safety=0
    These options need to match
     in Unknown on line 0
    PHP Warning:  PHP Startup: tidy: Unable to initialize module
    Module compiled with module API=20050922,thread-safety=0
    These options need to match
     in Unknown on line 0
    PHP 5.2.10 (cli) (built: Nov 13 2009 11:24:03)
    Copyright (c) 1997-2009 The PHP Group
    Zend Engine v2.2.0,Copyright (c) 1998-2009 Zend Technologies

我该怎么解决?谢谢!

看起来你没有升级PHP模块,它们不兼容.

检查php.ini中的extension_dir指令.它应该指向具有5.2个模块的文件夹.

由于您进行了升级,因此您有机会使用指向5.1模块的旧php.ini

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读