Thanks for your help. httpd as the "PrivateTmp=yes".
I did what you suggested, and changed the directory of the temporary folder of PHP (variable sys_temp_dir) to another directory and it work. Thanks 2018-01-29 16:55 GMT-05:00 Reindl Harald <h.rei...@thelounge.net>: > > Am 29.01.2018 um 20:27 schrieb cpass test: > >> configured a Moodle LMS to use the ClamAV. They have a plugin in Moodle >> for >> it. Here are the parameters for connecting to ClamAV: >> >> Unix domain socket: /var/run/clamd.scan/clamd.sock >> >> The clamd server is running and the socket really exist in specified >> location. >> >> WARNING: lstat() failed on: /tmp/phpag0dQF >> > let me guess: > > * systemd > * one or both of the invloved services has "PrivateTmp=yes" in it's unit > > don't use /tmp or /var/tmp then for files which both should be able to > access > _______________________________________________ > clamav-users mailing list > clamav-users@lists.clamav.net > http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users > > > Help us build a comprehensive ClamAV guide: > https://github.com/vrtadmin/clamav-faq > > http://www.clamav.net/contact.html#ml > _______________________________________________ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml