Skip to content

Commit

Permalink
[COOK-624] - apache2 - updating mod_php5 to write .conf file on RHEL …
Browse files Browse the repository at this point in the history
…derivatives
  • Loading branch information
Sean OMeara authored and jtimberman committed Sep 13, 2011
1 parent 85c3645 commit cfc1075
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions apache2/recipes/mod_php5.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,34 @@
notifies :run, resources(:execute => "generate-module-list"), :immediately
end

# delete stock config
file "#{node[:apache][:dir]}/conf.d/php.conf" do
action :delete
end

# replace with debian style config
template "#{node[:apache][:dir]}/mods-available/php5.conf" do
source "mods/php5.conf.erb"
notifies :restart, "service[apache2]"
end

when "fedora"
package "php package" do
package_name "php"
action :install
notifies :run, resources(:execute => "generate-module-list"), :immediately
end

# delete stock config
file "#{node[:apache][:dir]}/conf.d/php.conf" do
action :delete
end

# replace with debian style config
template "#{node[:apache][:dir]}/mods-available/php5.conf" do
source "mods/php5.conf.erb"
notifies :restart, "service[apache2]"
end
end

apache_module "php5"
Expand Down

0 comments on commit cfc1075

Please sign in to comment.