- Posts: 82
- Thank you received: 5
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
It turns out that under CentOS 7 Apache uses its own private tmp directory (see systemd PrivateTmp option). As such PHP can see the file, but no other process (such as 'clamd') can. So changing the upload directory is the only way that this would work.John Horne wrote: The problem though is that when PHP/Apache uploads a file it sets the mode so that only PHP/Apache can read it. The 'clamd' process runs under its own userid, so the antivirus check always failed with 'lstat' or permissions errors.
Please Log in or Create an account to join the conversation.

