include_recipe "apache"
include_recipe "git"
include_recipe "mysql"
-include_recipe "php::apache"
+include_recipe "php::fpm"
package %w[
php-cli
]
apache_module "headers"
+apache_module "proxy"
+apache_module "proxy_fcgi"
passwords = data_bag_item("donate", "passwords")
notifies :reload, "service[apache2]"
end
+php_fpm "donate.openstreetmap.org" do
+ php_admin_values "open_basedir" => "/srv/donate.openstreetmap.org/:/usr/share/php/:/tmp/",
+ "disable_functions" => "exec,shell_exec,system,passthru,popen,proc_open"
+end
+
apache_site "donate.openstreetmap.org" do
template "apache.erb"
end