In this video, I will show you how to install Antivirus-App in Nextcloud with ClamAV.
---- Commands to install clamAV and Antivirus Apps in Nextcloud -------
Step 1: First install ClamAV
sudo apt install clamav clamav-freshclam clamav-daemon
- Start the ClamAV update process:
sudo systemctl stop clamav-freshclam
sudo freshclam
- Then edit the ClamAV configuration
sudo nano /etc/clamav/clamd.conf
- Adjust the following values to fit our installation:
MaxDirectoryRecursion 30
MaxFileSize 100M
PCREMaxFileSize 100M
StreamMaxLength 100M
- Now restart ClamAv and freshclam
sudo systemctl restart clamav-freshclam
sudo systemctl restart clamav-daemon
- freshclam checks every hour to see if there are any updates for ClamAV.
Step 2: Install Antivirus-App in Nextcloud
- Switch to the Nextcloud directory and the apps folder in there:
cd /var/www/html/nextcloud/apps
- Download the antivirus app, unpack it and set the rights for Apache:
sudo wget [ Ссылка ]
sudo unzip master.zip
sudo mv files_antivirus-master files_antivirus
sudo rm master.zip
sudo chown -R www-data:www-data /var/www/html/nextcloud/apps/files_antivirus
- Go to the additional settings to change the values for scanning:
Set the mode to "Daemon "(Socket)"
Set the Socket "/var/run/clamav/clamd.ctl"
Transmission length to "104857600"
Set File size limit to -1 means no limit
the last settings to "Log only" or "Delete file", as we favor it
- End -
Please watch our more upcoming videos and don't forget to LIKE, COMMENT, AND SUBSCRIBE.
Thank you all.💕
MD
System Administrator
Ещё видео!