mirror of
https://github.com/friendica/friendica
synced 2025-04-30 09:04:22 +02:00
friendica-6379 Monolog - logfile permission denied
This commit is contained in:
parent
ea218438d2
commit
b56b56ccb6
3 changed files with 47 additions and 13 deletions
|
@ -74,6 +74,23 @@ class Summary extends BaseAdminModule
|
|||
$well_known, $well_known, $a->getBaseURL() . '/help/Install');
|
||||
}
|
||||
|
||||
// Check logfile permission
|
||||
if (Config::get('system', 'debugging')) {
|
||||
$stream = Config::get('system', 'logfile');
|
||||
|
||||
if (is_file($stream) &&
|
||||
!is_writeable($stream)) {
|
||||
$warningtext[] = L10n::t('The logfile \'%s\' is not writable. No logging possible', $stream);
|
||||
}
|
||||
|
||||
$stream = Config::get('system', 'dlogfile');
|
||||
|
||||
if (is_file($stream) &&
|
||||
!is_writeable($stream)) {
|
||||
$warningtext[] = L10n::t('The logfile \'%s\' is not writable. No logging possible', $stream);
|
||||
}
|
||||
}
|
||||
|
||||
// check legacy basepath settings
|
||||
$configLoader = new ConfigFileLoader($a->getBasePath(), $a->getMode());
|
||||
$configCache = new Config\Cache\ConfigCache();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue