From bf47b513193e764bd8ae5d516389f8becfb061cc Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 22 Feb 2011 10:13:59 -0500
Subject: [PATCH] Fixed: FS#1529 - wrong permission for link /var/www/clients/clientXX/webXX/log

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

diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php
index 2c7d63f..7f356bf 100644
--- a/server/plugins-available/apache2_plugin.inc.php
+++ b/server/plugins-available/apache2_plugin.inc.php
@@ -491,6 +491,9 @@
 
 			// make temp directory writable for the apache and website users
 			$this->_exec("chmod 777 ".escapeshellcmd($data["new"]["document_root"]."/tmp"));
+			
+			// Set Log symlink to 755 to make the logs accessible by the FTP user
+			$this->_exec("chmod 755 ".escapeshellcmd($data["new"]["document_root"])."/log");
 
 			$command = 'usermod';
 			$command .= ' --groups sshusers';

--
Gitblit v1.9.1