Skip to content

Instantly share code, notes, and snippets.

@gionn
Created May 28, 2014 16:05
Show Gist options
  • Save gionn/333761ac8a39765e0e5c to your computer and use it in GitHub Desktop.
Save gionn/333761ac8a39765e0e5c to your computer and use it in GitHub Desktop.
Chef php application example recipe
include_recipe "apache2::default"
include_recipe "apache2::mod_php5"
application 'wordpress' do
path '/var/www'
owner 'www-data'
group 'www-data'
repository 'https://github.com/WordPress/WordPress.git'
revision '3.9.1'
end
web_app "my_vhost" do
server_name node['hostname']
server_aliases [node['fqdn'], "my-site.example.com"]
docroot "/var/www"
end
php_pear "apc" do
action :install
directives(:shm_size => 256)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment