Skip to content

Instantly share code, notes, and snippets.

@fbrnc
Created July 1, 2014 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fbrnc/165c961546447bf44ab3 to your computer and use it in GitHub Desktop.
Save fbrnc/165c961546447bf44ab3 to your computer and use it in GitHub Desktop.
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