From 769525bb56fca1c2e4050cb18f53d493d73dc957 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Mon, 12 Apr 2021 09:42:25 +0200 Subject: [PATCH] do not touch/chown error/access log if log is disabled, fixes #934 Signed-off-by: Michael Kaufmann --- lib/Froxlor/Cron/Http/Apache.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/Froxlor/Cron/Http/Apache.php b/lib/Froxlor/Cron/Http/Apache.php index f580fc9f..9d3bb71c 100644 --- a/lib/Froxlor/Cron/Http/Apache.php +++ b/lib/Froxlor/Cron/Http/Apache.php @@ -788,14 +788,6 @@ class Apache extends HttpConfigBase )); $logfiles_text .= ' CustomLog "|' . $command . '" ' . $logtype . "\n"; } else { - // Create the logfile if it does not exist (fixes #46) - touch($error_log); - chown($error_log, Settings::Get('system.httpuser')); - chgrp($error_log, Settings::Get('system.httpgroup')); - touch($access_log); - chown($access_log, Settings::Get('system.httpuser')); - chgrp($access_log, Settings::Get('system.httpgroup')); - $logfiles_text .= ' ErrorLog "' . $error_log . '"' . "\n"; $logfiles_text .= ' CustomLog "' . $access_log . '" ' . $logtype . "\n"; }