ClamAV thereafter scans all files uploaded to your application for viruses. If ClamAV finds a virus, it displays a message to the user reporting that the file could not be uploaded, and then logs the event to stdout and stderr, with the file name and virus name. You can then find the entry in the Acquia Cloud drupal-watchdog log.
If you have uploaded files to your application using methods that differ from the normal Drupal upload methods, you can still use ClamAV to scan these files. To scan files on your infrastructure, open a command prompt window and enter the following command:
clamscan <file_path>The preceding command scans the file specified as input and returns scan results.
clamscan -i <folder_path>ClamAV scans all files recursively in the directory path provided as input in the preceding command and sub-directories. Use i parameter to display only the infected files, if any.
For more information on creating cron commands that perform regular scans for your website, see Creating scheduled jobs.
If you have uploaded files to your application using methods that differ from the normal Drupal upload methods, you can still use ClamAV to scan these files. Since this method uses CPU resources, Acquia recommends that you copy the files to your development or staging environment and scan files there, rather than in production. To scan files on your infrastructure, open a command prompt window and enter the following command:
clamscan -riThe r parameter causes ClamAV to scan all files recursively, in the current directory and sub-directories, and the i parameter displays only the infected files, if any.
You can also use the following cron command to run regular scans for your website:
--any-- 0 * * * * /usr/bin/clamscan -ri /mnt/tmp/ | mail -s "hourly website clam results" [email protected]This command scans files if run in /sites/default/files. To scan code, the command must be run from the code directory.
For a more configurable and extensible version of this command, you can download and use the clam_av_script.sh.inc script, which provides configurable notification emails, in a cron command.
The system does not support executable parameters and displays the following warning message in the CLI:
WARNING: Ignoring unsupported option --recursive (-r)ClamAV scans all files uploaded to your application for viruses. However, you can consider the following exceptional cases:
If this content did not answer your questions, try searching or contacting our support team for further assistance.
ClamAV thereafter scans all files uploaded to your application for viruses. If ClamAV finds a virus, it displays a message to the user reporting that the file could not be uploaded, and then logs the event to stdout and stderr, with the file name and virus name. You can then find the entry in the Acquia Cloud drupal-watchdog log.
If you have uploaded files to your application using methods that differ from the normal Drupal upload methods, you can still use ClamAV to scan these files. To scan files on your infrastructure, open a command prompt window and enter the following command:
clamscan <file_path>The preceding command scans the file specified as input and returns scan results.
clamscan -i <folder_path>ClamAV scans all files recursively in the directory path provided as input in the preceding command and sub-directories. Use i parameter to display only the infected files, if any.
For more information on creating cron commands that perform regular scans for your website, see Creating scheduled jobs.
If you have uploaded files to your application using methods that differ from the normal Drupal upload methods, you can still use ClamAV to scan these files. Since this method uses CPU resources, Acquia recommends that you copy the files to your development or staging environment and scan files there, rather than in production. To scan files on your infrastructure, open a command prompt window and enter the following command:
clamscan -riThe r parameter causes ClamAV to scan all files recursively, in the current directory and sub-directories, and the i parameter displays only the infected files, if any.
You can also use the following cron command to run regular scans for your website:
--any-- 0 * * * * /usr/bin/clamscan -ri /mnt/tmp/ | mail -s "hourly website clam results" [email protected]This command scans files if run in /sites/default/files. To scan code, the command must be run from the code directory.
For a more configurable and extensible version of this command, you can download and use the clam_av_script.sh.inc script, which provides configurable notification emails, in a cron command.
The system does not support executable parameters and displays the following warning message in the CLI:
WARNING: Ignoring unsupported option --recursive (-r)ClamAV scans all files uploaded to your application for viruses. However, you can consider the following exceptional cases:
If this content did not answer your questions, try searching or contacting our support team for further assistance.