My Nextcloud instance loggs to syslog and everything worked fine. I upgraded my server from Debian Wheezy to Jessie now (upgrade to Stretch will be the next step …). After the upgrade my logfile remains empty.
Debian 8.0/Raspbian GNU/Linux 8
Apache/2.4.10 (Raspbian)
PHP 5.6.33-0+deb8u1
status.php:
{“installed”:true,“maintenance”:false,“needsDbUpgrade”:false,“version”:“13.0.1.1”,“versionstring”:“13.0.1”,“edition”:"",“productname”:“Nextcloud”}
config.php:
<?php
$CONFIG = array (
'instanceid' => 'myinstance',
'passwordsalt' => 'mysalt',
'datadirectory' => '/media/ssd/owncloud',
'dbtype' => 'mysql',
'version' => '13.0.1.1',
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_owncloud',
'dbpassword' => 'mydbpassword',
'installed' => true,
'ldapIgnoreNamingRules' => false,
'maintenance' => false,
'loglevel' => 2,
'logdateformat' => 'F d, Y H:i:s',
'logtimezone' => 'Europe/Berlin',
'log_type' => 'syslog',
'syslog_tag' => 'ownCloud',
'mail_smtpmode' => 'php',
'mail_smtphost' => 'localhost',
'mail_smtpdebug' => true,
'log_authfailip' => true,
'trashbin_retention_obligation' => '1,7',
'versions_retention_obligation' => '1,7',
'check_for_working_webdav' => true,
'check_for_working_htaccess' => true,
'memcache.local' => '\\OC\\Memcache\\APCu',
'trusted_domains' =>
array (
0 => 'mytrusteddomain1',
1 => 'mytrusteddomain2',
2 => 'mytrusteddomain3',
3 => 'mytrusteddomain4',
4 => 'mytrusteddomain5',
),
'secret' => 'mysecret',
'overwrite.cli.url' => '/nextcloud',
'mail_from_address' => 'nextcloud',
'mail_domain' => 'nextcloud.mydomain.de',
'enable_previews' => true,
'updater.release.channel' => 'stable',
'updatechecker' => true,
'updater.server.url' => 'https://updates.nextcloud.com/updater_server/',
);
Remark: Naming of database name, user, prefix is historical …
I am logging via syslog-ng.
filter f_owncloud {
program("^ownCloud$");
};
destination d_owncloud {
file("/var/log/owncloud/owncloud.log");
};
log {
source(s_src);
filter(f_owncloud);
destination(d_owncloud);
flags(final);
};
Even if I remove filter(f_owncloud) I cannot find any logfile with Nextcloud entries. Any hints for me?
Thank you!
Best regards,
Franz