我有一个全新的服务器服务器,我正试图build立起来。 这是一个64位的机器,我不能安装“fileinfo”或“memcache”。 我卸载了这些,并重新安装使用百胜和pecl没有运气。 百胜安装罚款“没有错误”,但后来运行PHP时出现错误。 pecl从我能告诉只是安装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
这是一些其他的系统信息,因此你需要它
UNAME:
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:
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]
任何帮助将不胜感激,谢谢….
那么,因为没有任何反馈,我会张贴我使用的方式。 如果您使用的是Red Hat / CentOS,那么我有使用EPEL和IUS社区项目软件包的丰富经验。
#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
如果你想要其中的任何一个,那么PHP包的前缀是php52或者php53。 还有APC和Fileinfo软件包。 如果可以的话,你应该使用PHP 5.3,Fileinfo被捆绑到它里面。 用APC安装基础PHP很简单:
yum install php53-pecl-apc
如果您需要安装PDO,suhosin,soap等其他模块,请查看其他模块:
yum list php53*