]> git.openstreetmap.org Git - chef.git/commitdiff
Allow mediawiki instances to access /dev/null
authorTom Hughes <tom@compton.nu>
Sun, 29 Jul 2018 12:25:09 +0000 (13:25 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 29 Jul 2018 12:25:09 +0000 (13:25 +0100)
cookbooks/mediawiki/templates/default/apache.erb

index 913fc9acc52b8da27bcc28cfb2dabfbe892016be..3c8b4d7ac9ecc3a6ad8a86ab8ef6e444675df1b1 100644 (file)
@@ -32,7 +32,7 @@
 
   DocumentRoot <%= @directory %>
 
-  php_admin_value open_basedir <%= @directory %>/:/usr/share/php/:/tmp/
+  php_admin_value open_basedir <%= @directory %>/:/usr/share/php/:/dev/null:/tmp/
   #php_admin_value disable_functions "exec,shell_exec,system,passthru,popen,proc_open"
   php_value memory_limit 128M
   php_value max_execution_time 240