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

@@ -272,7 +272,7 @@ class lighttpd
{
// The normal access/error - logging is enabled
$filename = $this->settings['system']['logfiles_directory'] . $domain['loginname'] . $speciallogfile . '-error.log';
$filename = makeCorrectFile($this->settings['system']['logfiles_directory'] . $domain['loginname'] . $speciallogfile . '-error.log');
if(!is_file($filename))
{
@@ -280,12 +280,12 @@ class lighttpd
fclose($ourFileHandle);
}
chown($filename, $this->settings[system]['httpuser']);
chgrp($filename, $this->settings[system]['httpgroup']);
chown($filename, $this->settings['system']['httpuser']);
chgrp($filename, $this->settings['system']['httpgroup']);
//access log
$filename = $this->settings['system']['logfiles_directory'] . $domain['loginname'] . $speciallogfile . '-access.log';
$filename = makeCorrectFile($this->settings['system']['logfiles_directory'] . $domain['loginname'] . $speciallogfile . '-access.log');
if(!is_file($filename))
{
@@ -294,8 +294,9 @@ class lighttpd
}
$logfiles_text.= ' accesslog.filename = "' . $filename . '"' . "\n";
chown($filename, $this->settings[system]['httpuser']);
chgrp($filename, $this->settings[system]['httpgroup']);
chown($filename, $this->settings['system']['httpuser']);
chgrp($filename, $this->settings['system']['httpgroup']);
}
return $logfiles_text;