我试图找到一种简单的方法来升级我的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
我认为这基本上意味着我需要重新编译这四个模块,我怎么能这样做?任何建议表示赞赏.