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

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

diff --git a/server/conf/php-fcgi-starter.master b/server/conf/php-fcgi-starter.master
index 9920c4e..453951c 100644
--- a/server/conf/php-fcgi-starter.master
+++ b/server/conf/php-fcgi-starter.master
@@ -7,4 +7,8 @@
 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

--
Gitblit v1.9.1