如何使用Chef PHP Cookbook安装高于5.3.3的版本 [英] How to use Chef PHP cookbook to install version higher than 5.3.3

查看:61
本文介绍了如何使用Chef PHP Cookbook安装高于5.3.3的版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Opscode社区PHP食谱在节点上安装PHP。节点是CentOS,我尝试将install_method设置为 source,并尝试覆盖我的Role文件中的版本。

I am using the Opscode community PHP cookbook to install PHP on a node. The node is CentOS and I have attempted setting the install_method to "source" and also tried overriding the version in my Role file.

无论我做什么-Chef继续安装PHP 5.3.3。

No matter what I do - Chef continues to install PHP 5.3.3.

我想知道如何使用本食谱来安装PHP的新版本-或了解是否有可能。我在默认属性设置中看到了对PHP 5.3.28和5.4.15的引用-因此,我印象中应该有这种可能。

I want to know how to use this cookbook to install a newer version of PHP - or understand if it's even possible. I see references to PHP 5.3.28 and 5.4.15 in the default attribute settings - so I am under the impression that it should be possible.

有人知道我如何

推荐答案

Chef只是使用系统软件包存储库中可用的软件包。因此,根据您的情况,该值为5.3。

Chef simply uses the packages available in the systems package repositories. So that might be 5.3 in your case.

对5.4.15的引用是针对源安装的。您必须使用其他食谱

The reference to 5.4.15 is for the source install. You'd have to use another recipe

php::source

您可以从厨师那里设置PHP的首选版本

You could set the preferred version for PHP from chef

:php => {
  :version => "5.5",
},

这篇关于如何使用Chef PHP Cookbook安装高于5.3.3的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆