From 627993f02e72f25b550f8278f3c33ab159fe034a Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 29 Dec 2011 05:59:52 -0500
Subject: [PATCH] Fixed: FS#1934 - CentOS 6.1: cgi-bin: wrong folder permissions - Set error reporting level in app inc.

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

diff --git a/interface/lib/app.inc.php b/interface/lib/app.inc.php
index 597be87..d5262bd 100644
--- a/interface/lib/app.inc.php
+++ b/interface/lib/app.inc.php
@@ -33,7 +33,7 @@
 
 //* Set error reporting level when we are not on a developer system
 if(DEVSYSTEM == 0) {
-	@ini_set('error_reporting', E_ALL & ~E_NOTICE);
+	@ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_DEPRECATED);
 }
 
 /*
diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php
index fb37e58..4958f81 100644
--- a/server/plugins-available/apache2_plugin.inc.php
+++ b/server/plugins-available/apache2_plugin.inc.php
@@ -586,7 +586,7 @@
 				//* add the Apache user to the client group
 				$app->system->add_user_to_group($groupname, escapeshellcmd($web_config['user']));
 
-				$this->_exec('chown '.$username.':'.$groupname.' '.escapeshellcmd($data['new']['document_root']));
+				$this->_exec('chown -R '.$username.':'.$groupname.' '.escapeshellcmd($data['new']['document_root']));
 
 				/*
 				* Workaround for jailkit: If jailkit is enabled for the site, the 

--
Gitblit v1.9.1