Hello There,
Below are the modifications I did on my cookbook/phpapp/recipes/default.rb
include_recipe 'apache2'
include_recipe 'apache2::default'
template "#{node['apache']['dir']}/sites-available/default.conf" do
cookbook 'apache2'
source 'web_app.conf.erb'
owner 'root'
group node['apache']['root_group']
mode '0644'
# notifies :restart , 'service[apache2]'
end
#web_app "default" do
# #template 'web_app.conf.erb'
# #name 'default'
# server_name 'localhost'
# enable true
# docroot '/var/www/html'
#end