I am using a single installation of roundcube for all mywebsites. (current version 8.1) Initially I had squirrelmail insatalled, subsequently I changed it to RCmail, but the folder is still named as squirremail for RCmail files in /usr/share/squirrelmail All the files & folders are owned by root including /squirrelmail I am trying to view the attachments in the mail using the roundcube plugin "cloudview", but on clicking the attachment, I see a error message like "an error occured" error log for website reads like this PHP: [Mon Aug 20 02:13:03 2012] [error] [client 192.168.0.1] PHP Warning: Error writing to log file /usr/share/squirrelmail/logs/errors; Please check permissions in /usr/share/squirrelmail/program/include/main.inc on line 1965, referer: http://cbsindia.in/webmail/?_task=mail&_action=preview&_uid=15670&_mbox=INBOX&_framed=1[Mon Aug 20 02:13:03 2012] [error] [client 192.168.0.1] PHP Notice: Deprecated hook name. imap_init -> storage_init in /usr/share/squirrelmail/program/include/main.inc on line 2120, referer: http://cbsindia.in/webmail/?_task=mail&_action=preview&_uid=15670&_mbox=INBOX&_framed=1[Mon Aug 20 02:13:10 2012] [error] [client 192.168.0.1] PHP Warning: Error writing to log file /usr/share/squirrelmail/logs/errors; Please check permissions in /usr/share/squirrelmail/program/include/main.inc on line 1965, referer: http://cbsindia.in/webmail/?_task=mail&_action=preview&_uid=15670&_mbox=INBOX&_framed=1[Mon Aug 20 02:13:10 2012] [error] [client 192.168.0.1] PHP Notice: Deprecated hook name. imap_init -> storage_init in /usr/share/squirrelmail/program/include/main.inc on line 2120, referer: http://cbsindia.in/webmail/?_task=mail&_action=preview&_uid=15670&_mbox=INBOX&_framed=1[Mon Aug 20 02:13:10 2012] [error] [client 192.168.0.1] PHP Warning: file_put_contents(/usr/share/squirrelmail/temp/cloudviewTmp_50314fdef0b0a.jpg): failed to open stream: Permission denied in /usr/share/squirrelmail/plugins/cloudview/lib/pixlrService.php on line 28, referer: http://cbsindia.in/webmail/?_task=mail&_action=preview&_uid=15670&_mbox=INBOX&_framed=1 Thanks.
I guess the cludview plugin needs some kind of temporary directory to decode the attachments and this directory has to be writable then for the user that runs roundcube. Maybe you find some morde detailed info in the docs of that plugin.