[clamav-users] Trying to use daemon service to scan on demand with php
Andrew C Aitchison
clamav at aitchison.me.uk
Sat Jan 23 10:11:50 UTC 2021
On Sat, 23 Jan 2021, Paul Claridge wrote:
> My current project is a web service on Ubuntu LAMP (20.02LTS).
>
> I have installed the clamav-daemon package successfully.
>
> My php scripts run as www-data:www-data and I have changed the user and group
> in /etc/clamav/clamd.conf to www-data:www-data so that the php library I
> found can access the socket and scan files when I want to. I had to chown
> both the socket and log directories to get the daemon the start.
Are you using
clamdscan --fdpass
or are you trying to access the socket via php ?
With the --fdpass option, the Ubuntu defaults should be all you need.
--
Andrew C. Aitchison Kendal, UK
andrew at aitchison.me.uk
More information about the clamav-users
mailing list