# Enable the "forum" role
default[:accounts][:users][:forum][:status] = :role
-
-# Use prefork as PHP is to dumb for anything else
-override[:apache][:mpm] = "prefork"
include_recipe "apache"
include_recipe "git"
include_recipe "mysql"
-include_recipe "php::apache"
+include_recipe "php::fpm"
cache_dir = Chef::Config[:file_cache_path]
apache_module "rewrite"
+apache_conf "php#{node[:php][:version]}-fpm" do
+ action :enable
+end
+
ssl_certificate "forum.openstreetmap.org" do
domains ["forum.openstreetmap.org", "forum.osm.org"]
notifies :reload, "service[apache2]"