]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dmca/templates/default/apache.erb
Enable proc_open
[chef.git] / cookbooks / dmca / templates / default / apache.erb
index bf53e2d2e41b4449a0e198ab6a3f8476a61a1911..373c63af276c800ccc7c110c52c8eb0bf0bbeedc 100644 (file)
@@ -47,6 +47,8 @@
   DocumentRoot <%= @directory %>/html
 
   Options -Indexes
+
+  ProxyFCGISetEnvIf "true" PHP_ADMIN_VALUE "open_basedir=<%= @directory %>/html/:/usr/share/php/:/tmp/\ndisable_functions=exec,shell_exec,system,passthru,popen"
 </VirtualHost>
 
 <Directory <%= @directory %>/html>