Skip to content

Instantly share code, notes, and snippets.

@johnkary
Forked from philsturgeon/default.rb
Last active October 7, 2016 21:52
Show Gist options
  • Save johnkary/6124750 to your computer and use it in GitHub Desktop.
Save johnkary/6124750 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"
@johnkary
Copy link
Author

Changed the URI to the 5.4 package repository because the old one http://ppa.launchpad.net/ondrej/php5-oldstable/ubuntu now installs PHP 5.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment