首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >更新CentOS 5.4后的“无法初始化模块”警告

更新CentOS 5.4后的“无法初始化模块”警告
EN

Server Fault用户
提问于 2010-06-25 04:47:59
回答 2查看 16.3K关注 0票数 1

在将PHP从5.1x升级到5.2.10之后,当php -v

代码语言:javascript
复制
[root@localhost ~]# 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, debug=0, 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, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, 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, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, 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, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, 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, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, 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, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, 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, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, 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

我怎么才能解决呢?谢谢!

EN

回答 2

Server Fault用户

回答已采纳

发布于 2010-06-25 05:50:22

您需要删除旧模块并安装新模块。如果您通过yum/rpm安装,那么更新包。如果您自己构建了PHP,那么您也需要使用这些扩展来构建它。

票数 3
EN

Server Fault用户

发布于 2010-11-02 06:39:05

尽管memcached在服务器上愉快地运行,但如果没有PECL扩展,就无法从PHP访问它。幸运的是,这是一个非常简单的过程;只需使用pecl命令:

代码语言:javascript
复制
$ pecl install memcache

请参阅:http://www.lullabot.com/articles/installing-memcached-redhat-or-centos

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/154715

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档