Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Doud's avatar
Level 1

Run ClamAV with Vapor

Hi there! I am looking for a way to scan uploaded files with ClamAV but I have some problems with Vapor.

I was able to install the libraries

RUN apk add --update clamav clamav-daemon
RUN echo "TCPSocket 3310" >> /etc/clamav/clamd.conf
RUN freshclam

But I haven't been able to run the daemon. I tried :

RUN systemctl enable --now clamav-daemon clamav-freshclam
RUN service clamav-daemon start

I understand that it might not be possible to run a daemon. But I am wondering if you have any idea that could help?

0 likes
1 reply
jlrdw's avatar

I have also had problems with the daemon.

Have you considered Mcafee, Eset, or one of the others for server protection?

Also a scan won't stop a script being added. See:

https://laracasts.com/discuss/channels/general-discussion/image-security

I suggest viewing those Symfony videos. Also I have seen where python scripts are slipped through. In fact I am still researching this.

Another good post is https://laracasts.com/discuss/channels/laravel/generate-unique-name-for-file-upload

But all of this is just for your FYI.

1 like

Please or to participate in this conversation.