Our qmail mail server creates attachments via osticket like so:
-rw------- 1 vpopmail vchkpw 28673 Jun 4 09 ......
This means our webserver running osticket can't read them as its running as apache.apache.
Links like this http://support.mydomain.com/scp/attachment.php?id=18&ref=e191f5126d8ee2d999f6a45715e4f544(http://support.mydomain.com/scp/attachment.php?id=18&ref=e191f5126d8ee2d999f6a45715e4f544) will then just offer a download of the file that is 0 bytes long.
May I suggest adding to scp/attachment.php at about line 45:
if (!is_writeable($file)) die("No permission to read attachment");
...so that people are alerted to the real cause of the problem.
I've fixed this by changing apache to run as vpopmail.apache in httpd.conf but id have prefered to somehow add apache to the vchkpw group in /etc/group but I can't seem to get it to work.
Any Ideas?
Thanks,
Steve