使用yum在CentOS上将PHP升级到5.2.12
发布时间:2020-12-15 22:33:30 所属栏目:安全 来源:网络整理
导读:我试图找到一种简单的方法来升级我的CentOS5机器上的 PHP使用yum而不是下载源并自己再次编译它(我上次做了,但是很难让所有的编译配置与CentOS的默认配置相同).无论如何,我最后使用这里列出的方法: http://www.atomicorp.com/wiki/index.php/PHP 现在,命令ph
我试图找到一种简单的方法来升级我的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,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,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,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,thread-safety=0 These options need to match in Unknown on line 0 我认为这基本上意味着我需要重新编译这四个模块,我怎么能这样做?任何建议表示赞赏. 解决方法
这非常简单,您需要添加更多最新的yum存储库然后升级.
一个例子就在这里. cat >> /etc/yum.repos.d/utterramblings.repo <<END [utterramblings] name=Jason's Utter Ramblings Repo baseurl=http://www.jasonlitka.com/media/EL5/i386/ enabled=1 gpgcheck=1 gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka 在此之后,您将获得最新版本的PHP和其他扩展.有用!! (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
热点阅读