Skip to content

Instantly share code, notes, and snippets.

@marco-s
Forked from johnkary/default.rb
Created October 7, 2016 21:52
Show Gist options
  • Save marco-s/ef8c93ce3c56f9b188b4afe2c78952ca to your computer and use it in GitHub Desktop.
Save marco-s/ef8c93ce3c56f9b188b4afe2c78952ca to your computer and use it in GitHub Desktop.
Using PHP 5.4 on Ubuntu 12.04.
# Can force this into php/recipes/package.rb
# Or if you're like me and use a cookbook to provision with chef-solo...
# add this near the top of your file before you update apt
# Use PHP 5.4
apt_repository "php54" do
uri "http://ppa.launchpad.net/ondrej/php5-oldstable/ubuntu"
distribution node['lsb']['codename']
components ["main"]
keyserver "keyserver.ubuntu.com"
key "E5267A6C"
end
include_recipe "apt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment