removing unneeded file install_configs.php;

making $cronscriptDebug a setting in the database (no messing around in the files for debugging);
removed unnecessary unset() in cron_init.php;
setting of correct file-ownership of logfiles in apache and lighttpd crons;
This commit is contained in:
Michael Kaufmann (d00p)
2010-01-25 07:29:23 +00:00
parent 568e214343
commit b6699850bb
10 changed files with 53 additions and 154 deletions

View File

@@ -363,9 +363,17 @@ class apache
else
{
// The normal access/error - logging is enabled
$error_log = makeCorrectFile($this->settings['system']['logfiles_directory'] . $domain['loginname'] . $speciallogfile . '-error.log');
chown($error_log, $this->settings['system']['httpuser']);
chgrp($error_log, $this->settings['system']['httpgroup']);
$access_log = makeCorrectFile($this->settings['system']['logfiles_directory'] . $domain['loginname'] . $speciallogfile . '-access.log');
chown($access_log, $this->settings['system']['httpuser']);
chgrp($access_log, $this->settings['system']['httpgroup']);
$logfiles_text.= ' ErrorLog "' . $error_log . "\"\n";
$logfiles_text.= ' CustomLog "' . $access_log .'" combined' . "\n";
$logfiles_text.= ' ErrorLog "' . $this->settings['system']['logfiles_directory'] . $domain['loginname'] . $speciallogfile . '-error.log' . "\"\n";
$logfiles_text.= ' CustomLog "' . $this->settings['system']['logfiles_directory'] . $domain['loginname'] . $speciallogfile . '-access.log" combined' . "\n";
}
if($this->settings['system']['awstats_enabled'] == '1')