directory "/home/lonvia/nominatim"
end
+template "/etc/php5/fpm/pool.d/www.conf" do
+ source "fpm.conf.erb"
+ owner "root"
+ group "root"
+ mode 0644
+ variables :name => "www", :pm => "dynamic", :max_children => "50"
+ notifies :reload, resources(:service => "php5-fpm")
+end
+
+template "/etc/php5/fpm/pool.d/bulk.conf" do
+ source "fpm.conf.erb"
+ owner "root"
+ group "root"
+ mode 0644
+ variables :name => "bulk", :pm => "static", :max_children => "7"
+ notifies :reload, resources(:service => "php5-fpm")
+end
+
postgresql_user "tomh" do
cluster "9.1/main"
superuser true
--- /dev/null
+; DO NOT EDIT - This file is being maintained by Chef
+
+[<%= @name %>]
+listen = /var/run/php5-fpm-<%= @name %>.sock
+
+user = www-data
+group = www-data
+
+pm = <%= @pm %>
+pm.max_children = <%= @max_children %>
+pm.start_servers = 20
+pm.min_spare_servers = 20
+pm.max_spare_servers = 30
+pm.max_requests = 1000000
+
+security.limit_extensions = .php .phpx .phpj