Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install PHP 5.4 on AWS Opsworks Ubuntu 12.04 (note that Ubuntu 14.04 will install PHP 5.5 by default)
# Add this to the "setup" activity:
apt_repository "custom-php5-oldstable" do
uri "http://ppa.launchpad.net/ondrej/php5-oldstable/ubuntu"
distribution node['lsb']['codename']
components ["main"]
keyserver "keyserver.ubuntu.com"
key "E5267A6C"
action :nothing
subscribes :add, "template[/etc/sudoers]", :immediately
notifies :run, "execute[custom-apt-get-update]", :immediately
end
execute 'custom-apt-get-update' do
command 'apt-get update'
action :nothing
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment