php 在centos6.2中安装PHP 5.4.1
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11361068/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 00:20:52 来源:igfitidea点击:
Install PHP 5.4.1 in centos6.2
提问by D T
In centos6.2 default is php 5.3.3. But i want install php 5.4.1. Can you help me? How do php5.4.1 install in centos6.2? Thanks!
在centos6.2 中默认是php 5.3.3。但我想安装 php 5.4.1。你能帮助我吗?php5.4.1在centos6.2中如何安装?谢谢!
回答by Nikola K.
回答by Eddy Ferreira
- you must
yum remove php-commonthat will remove php from your server. - then
php -vto make sure there is no php - finally
rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpmfollowed byyum install php54w - and ideally you would want to install php54w-fpm too
- 您必须
yum remove php-common从您的服务器中删除 php。 - 然后
php -v确保没有php - 最后
rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm跟着yum install php54w - 理想情况下,您也想安装 php54w-fpm

