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

前端之家收集整理的这篇文章主要介绍了PHP警告: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
    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

原文链接:https://www.f2er.com/php/131346.html

猜你在找的PHP相关文章