我有一个全新的服务器,我正在尝试安装。这是一个64位的机器,我不能安装“文件信息”或“内存缓存”。我已经卸载了这些,并重新安装他们使用百胜和果胶,没有运气。Yum安装精细的“无错误”,但在运行php时得到错误。据我所知,只安装32位。不会在lib64目录中放置任何内容。下面是我来自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: 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这里有一些其他系统信息,以防您需要它。
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/LinuxPHP 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]任何帮助都将不胜感激,谢谢.
发布于 2010-11-20 21:13:57
好吧,既然没有反馈,我会发布一种我使用的方式。如果您使用的是Red /CentOS,那么我已经有过使用埃佩尔和国际单位社区项目包的良好经验。
#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很简单:
yum install php53-pecl-apc如果需要安装其他模块,如PDO、suhosin、soap等,请查看其他模块:
yum list php53*https://serverfault.com/questions/204142
复制相似问题