Installation and Maintenance

Take care of logfiles

ILIAS and apache do some logging in various files. These logs can be space-consuming and collect a lot of entries over time.
Many systems use the logrotate- package to compress the logs on a regular basis, create new ones and delete the oldest logs. This routine can be applied to the ILIAS logfiles, too. To do so, create a file
 
/etc/logrotate.d/ilias
 
that points logrotate to the ilias log file (as configured on the ilias setup page), rotates it regularly and creates a new one.
 
A sample file looks like:

1
2
3
4
5
6
7
8
9
10
11
12
13
/srv/iliasdata/*.log {
weekly
missingok
rotate 52
compress
delaycompress
notifempty
create 640 www-data www-data
sharedscripts
postrotate
/etc/init.d/apache2 reload > /dev/null
endscript
}

Take care this function works correct, since ilias depends on the ability to write the logfile. If there is no access to the log (e.g. by wrong file ownership to the root user) the server will generate a http 500 error and send empty pages fir login while the setup remains accessible.



No comment has been posted yet.