From abd9b232ad25496f8eeee6b133f27e44e068a7c5 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sun, 5 Jul 2009 13:09:38 +0000
Subject: [PATCH] Added openbasedir restriction to fcgi starter script.

---
 server/conf/php-fcgi-starter.master | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/server/conf/php-fcgi-starter.master b/server/conf/php-fcgi-starter.master
index 9920c4e662..453951c15b 100644
--- a/server/conf/php-fcgi-starter.master
+++ b/server/conf/php-fcgi-starter.master
@@ -7,4 +7,8 @@ PHP_FCGI_CHILDREN=<tmpl_var name='php_fcgi_children'>
 export PHP_FCGI_CHILDREN
 PHP_FCGI_MAX_REQUESTS=<tmpl_var name='php_fcgi_max_requests'>
 export PHP_FCGI_MAX_REQUESTS
-exec <tmpl_var name='php_fcgi_bin'> $1
\ No newline at end of file
+exec <tmpl_var name='php_fcgi_bin'> \
+-d open_basedir=<tmpl_var name='document_root'> \
+-d upload_tmp_dir=<tmpl_var name='document_root'>/tmp \
+-d session.save_path=<tmpl_var name='document_root'>/tmp \
+$1
\ No newline at end of file
-- 
GitLab