Roundcube Log failed to open stream


I encounter this issue:

[Thu Dec 28 09:53:01.788234 2023] [proxy_fcgi:error] [pid 1077498:tid 139822098204224] [client] AH01071: Got error 'PHP message: PHP Warning:  file_put_contents(/var/log/roundcube/imap.log): Failed to open stream: Permission denied in /var/lib/roundcube/program/lib/Roundcube/rcube.php on line 1380

I checked the ownship and permissions of imap.log and they seem fine:

-rw-r--r-- 1 www-data   www-data  0 Nov  1 00:00 imap.log

I also checked the ownership and permissions of the ‘roundcube’ directory within /var/log but they might not be correct?

drwxr-x--x  2 www-data   www-data  4096 Nov  1 00:00 roundcube

If this is, what else could it be?

Thanks in advance.

Hi @chris,

chown -R hestiamail:www-data /var/log/roundcube

Thank you very much @sahsanu!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.