Install Antivirus Software in the ownCloud Appliance¶
This guide details how to enable a virus scanner in the ownCloud Appliance. It is composed of two parts:
Configure ownCloud to Use ClamAV¶
You next need to configure ClamAV in your ownCloud instance. Please refer to the ClamAV documentation for instructions on how to do that.
If you try to update the ClamAV virus database manually, by entering freshclam
, and see the error below, it means that freshclam is already updating the database.
ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
Updates are run based on the configured time interval in the applicable Cron job. In the example below, the update would run every 47 minutes:
# m h dom mon dow command
47 * * * * /usr/bin/freshclam --quiet
If there are errors running the freshclam process, check if a process is blocking the log file, by running the following command:
lsof /var/log/clamav/freshclam.log
If you want to refresh the ClamAV database manually, follow these steps:
# Gently end the freshclam process with this command:
sudo pkill -15 -x freshclam
# Start the refresh process again with this command:
sudo freshclam