How to use Chef PHP cookbook to install version higher than 5.3.3 [closed]

拥有回忆 提交于 2020-01-15 07:18:08

问题


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.

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

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.

Does anyone know how I might accomplish this?


回答1:


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

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

php::source

You could set the preferred version for PHP from chef

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


来源:https://stackoverflow.com/questions/21132353/how-to-use-chef-php-cookbook-to-install-version-higher-than-5-3-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!