summaryrefslogtreecommitdiff
path: root/manifests/vhost
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-09-18 23:12:43 +0200
committermh <mh@immerda.ch>2013-09-18 23:12:43 +0200
commitc651a8eeabe12d1126e1b095f178fe8bef105f66 (patch)
tree01d98f957620c102ecbbcf32556b0c7821b58ef7 /manifests/vhost
parent76ded9761da817a5d72e14a23b49582c1127aacd (diff)
joomla requires allow_url_fopen to update itself :( http://docs.joomla.org/Security_Checklist/Hosting_and_Server_Setup#Use_allow_url_fopen
Diffstat (limited to 'manifests/vhost')
-rw-r--r--manifests/vhost/php/joomla.pp7
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/vhost/php/joomla.pp b/manifests/vhost/php/joomla.pp
index 3962efa..78b392e 100644
--- a/manifests/vhost/php/joomla.pp
+++ b/manifests/vhost/php/joomla.pp
@@ -97,6 +97,11 @@ define apache::vhost::php::joomla(
$real_mod_security_additional_options = $mod_security_additional_options
}
+ $std_joomla_php_settings = {
+ 'allow_url_fopen' => 'on',
+ 'allow_url_include' => 'off',
+ }
+
# create vhost configuration file
::apache::vhost::php::webapp{
$name:
@@ -115,7 +120,7 @@ define apache::vhost::php::joomla(
run_uid => $run_uid,
run_gid => $run_gid,
allow_override => $allow_override,
- php_settings => $php_settings,
+ php_settings => merge($std_joomla_php_settings, $php_settings),
php_options => $php_options,
do_includes => $do_includes,
options => $options,