我试图找到一种简单的方法来升级我的 CentOS5 机器上的 PHP,yum
而不是下载源代码并自己重新编译(我上次做过,但是很难让所有编译配置都与 CentOS 的默认配置相同)。无论如何,我最终使用这里列出的方法:http:
//www.atomicorp.com/wiki/index.php/PHP
现在,命令php -v
显示版本已经是 5.2.11(我需要),但它总是包含许多警告,例如:
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: 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
我认为这基本上意味着我需要重新编译这四个模块,我该怎么做?任何建议表示赞赏。