Today I got email by automatically from my osTicket, the email subject is: IOException: Unable to read resource content, and the mail content are:
/tmp/phplYoFcW: Unable to move file
#0 (root)/include/class.file.php(473): FilesystemStorage->upload()
#1 (root)/include/class.file.php(340): AttachmentFile::create()
#2 (root)/include/class.attachment.php(142): AttachmentFile::upload()
#3 (root)/include/ajax.draft.php(100): GenericAttachments->upload()
#4 (root)/include/ajax.draft.php(303): DraftAjaxAPI->_uploadInlineImage()
#5 (root)/include/ajax.draft.php(318): DraftAjaxAPI->uploadInlineImage()
#6 (root)/include/class.dispatcher.php(145): DraftAjaxAPI->uploadInlineImageEarly()
#7 (root)/include/class.dispatcher.php(38): UrlMatcher->dispatch()
#8 (root)/include/class.dispatcher.php(120): Dispatcher->resolve()
#9 (root)/include/class.dispatcher.php(38): UrlMatcher->dispatch()
#10 (root)/scp/ajax.php(316): Dispatcher->resolve()
#11 {main}
I checked the previous threads and know it shoule be permission issus of attachment folder, I checked the folder "/var/www/html/osTicket/include/attachments" the owner and group is apache, but I found the sub-folders owner and group both apache and root, I think all of the sub-folders owner and group should be apache, I have no idea why the owner is root.
Please check the screenshot: