Download the PHP package symbiote/silverstripe-steamedclams without Composer
On this page you can find all versions of the php package symbiote/silverstripe-steamedclams. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package silverstripe-steamedclams
Introduction
Using ClamAV, this module scans files as their uploaded and denies uploading if a virus was detected. If the ClamAV daemon is down it will log that the file needs to be scanned, wherein you can either manually scan via the CMS once the daemon is back online, run a nightly cron that scans the files or if you have queuedjobs installed, it will automatically scan missed files at nightly.
Composer Install
Screenshots
Quick Start
1) Install ClamAV in Unix/Linux.
run when necessary.
2) Start clamav-daemon
And check the clamav-daemon is running.
3) Setup socket permissions The clamav-daemon creates this /var/run/clamav/clamd.ctl if not.
'defaultsite' being the user and group that has ownership.
4) Configure clamd.conf:
(optional) You can use a different socket path, but you will need to change it in the config YML like below to match your clamd.conf:
5) After running dev/build?flush, all files should scan for viruses automatically during uploading / validation. If you are using
6) To check to see if it's running properly, it should show that it's ONLINE at: http://{mysite.com}/admin/clamav
Configuration
If you have the QueuedJobs module installed, you can configure when files missed by ClamAV daemon are scanned. This job will only queue if the daemon couldn't be connected to at the time that the file was uploaded.
Install on existing project
By running the task below, all files uploaded before installation of the module will be scanned.
To ignore certain files before a specific date, you can configure the datetime in your YML
files, as below:
Emulate Mode
To emulate ClamAV results, put in your YML
Then in your _config.php, switch between various testing modes:
Supports
- Silverstripe 5.0 and up
- Versioned Files
- CDN Content
- For Silverstripe 4.x use 3.0
- For Silverstripe 3.2 and up (3.1 should work, create an issue if you determine otherwise) use 1.0
Credits
Barakat S for clamd PHP interface "How to Forge" users for fixing permission issues
All versions of silverstripe-steamedclams with dependencies
silverstripe/admin Version ^2
silverstripe/reports Version ^5
silverstripe/siteconfig Version ^5
xenolope/quahog Version ^3.0