From 3a4834ee6dd098b1527fef43211fbf41b48c9f46 Mon Sep 17 00:00:00 2001
From: vogelor <vogelor@ispconfig3>
Date: Mon, 26 Jan 2009 14:06:59 -0500
Subject: [PATCH] Fixed problem with suexec, cgi and openbasedir

---
 server/plugins-available/apache2_plugin.inc.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php
index 4021a0a..1c7b918 100644
--- a/server/plugins-available/apache2_plugin.inc.php
+++ b/server/plugins-available/apache2_plugin.inc.php
@@ -569,7 +569,7 @@
 			$cgi_tpl = new tpl();
 			$cgi_tpl->newTemplate("php-cgi-starter.master");
 
-			$cgi_tpl->setVar('open_basedir',$data["new"]["document_root"]);
+			$cgi_tpl->setVar('open_basedir', "/var/www/" . $data["new"]["domain"]);
 			$cgi_tpl->setVar('php_cgi_bin',$cgi_config["cgi_bin"]);
 
 			$cgi_starter_script = escapeshellcmd($cgi_starter_path.$cgi_config["cgi_starter_script"]);

--
Gitblit v1.9.1