首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >“无法初始化模块”fileinfo php-pel-fileinfo.x86_64

“无法初始化模块”fileinfo php-pel-fileinfo.x86_64
EN

Server Fault用户
提问于 2010-11-19 23:42:01
回答 1查看 3.5K关注 0票数 3

我有一个全新的服务器,我正在尝试安装。这是一个64位的机器,我不能安装“文件信息”或“内存缓存”。我已经卸载了这些,并重新安装他们使用百胜和果胶,没有运气。Yum安装精细的“无错误”,但在运行php时得到错误。据我所知,只安装32位。不会在lib64目录中放置任何内容。下面是我来自php -v的输出:

代码语言:javascript
复制
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: 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 5.2.14 (cli) (built: Aug 12 2010 16:03:48)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies

这里有一些其他系统信息,以防您需要它。

名称:

代码语言:javascript
复制
Linux server.actham.us 2.6.18-194.26.1.el5 #1 SMP Tue Nov 9 12:54:20 EST 2010 x86_64 x86_64 x86_64 GNU/Linux

php -m:

代码语言:javascript
复制
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: 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 Modules]
bz2
calendar
ctype
curl
date
dbase
dom
exif
filter
ftp
gd
gettext
gmp
hash
iconv
imap
json
ldap
libxml
mbstring
mcrypt
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

[Zend Modules]

任何帮助都将不胜感激,谢谢.

EN

回答 1

Server Fault用户

发布于 2010-11-20 21:13:57

好吧,既然没有反馈,我会发布一种我使用的方式。如果您使用的是Red /CentOS,那么我已经有过使用埃佩尔国际单位社区项目包的良好经验。

代码语言:javascript
复制
#EPEL
wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/epel-release-1-1.ius.el5.noarch.rpm
#IUS Community Project
wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-6.ius.el5.noarch.rpm
#Install repos
rpm -Uvh epel-release-1-1.ius.el5.noarch.rpm ius-release-1.0-6.ius.el5.noarch.rpm

如果您需要php52或php53的话,它们的前缀都是PHP包。还有APC和Fileinfo包。如果可以的话,应该使用PHP5.3,并将Fileinfo捆绑到其中。用APC安装基本PHP很简单:

代码语言:javascript
复制
yum install php53-pecl-apc

如果需要安装其他模块,如PDO、suhosin、soap等,请查看其他模块:

代码语言:javascript
复制
yum list php53*
票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/204142

复制
相关文章

相似问题

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