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

phpcentos

提问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.

rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm
yum install php54w

See thisfor more info.

有关更多信息,请参阅内容。

回答by Eddy Ferreira

  1. you must yum remove php-commonthat will remove php from your server.
  2. then php -vto make sure there is no php
  3. finally rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpmfollowed by yum install php54w
  4. and ideally you would want to install php54w-fpm too
  1. 您必须yum remove php-common从您的服务器中删除 php。
  2. 然后php -v确保没有php
  3. 最后rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm跟着yum install php54w
  4. 理想情况下,您也想安装 php54w-fpm