summaryrefslogtreecommitdiff
path: root/manifests/vhost/template.pp
diff options
context:
space:
mode:
authorAndreas <andreas@immerda.ch>2009-11-18 17:06:07 +0100
committerAndreas <andreas@immerda.ch>2009-11-18 17:06:07 +0100
commitf9eb500201f27ecb95fad84ae4d5bae4808aea66 (patch)
tree9ce881e0a2c5ab9e185946c440a084103a17756f /manifests/vhost/template.pp
parent9e1422ebd6728856fb5ab5cbc0fc5b88406ab9c1 (diff)
added a dir for binaries (php safe_mode_exec_dir)
Diffstat (limited to 'manifests/vhost/template.pp')
-rw-r--r--manifests/vhost/template.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/manifests/vhost/template.pp b/manifests/vhost/template.pp
index 8ce6484..75cb9cf 100644
--- a/manifests/vhost/template.pp
+++ b/manifests/vhost/template.pp
@@ -24,6 +24,7 @@ define apache::vhost::template(
$domainalias = 'absent',
$server_admin = 'absent',
$allow_override = 'None',
+ $php_bin_dir = 'absent',
$php_upload_tmp_dir = 'absent',
$php_session_save_path = 'absent',
$cgi_binpath = 'absent',
@@ -94,6 +95,13 @@ define apache::vhost::template(
}
# set default dirs for templates
+ # php bin_dir
+ case $php_bin_dir {
+ 'absent': {
+ $real_php_bin_dir = "/var/www/vhosts/$name/bin"
+ }
+ default: { $real_php_bin_dir = $php_bin_dir }
+ }
# php upload_tmp_dir
case $php_upload_tmp_dir {
'absent': {