RoundCube 1.5.12 Released

Started by Starburst, December 22, 2025, 01:08:21 PM

Previous topic - Next topic

overseer

Simple and elegant solution -- thanks so much!

Netino

#16
Sorry, I just forgot one thing:
It's possible that `cwpsrv` might start reporting in the logs that it cannot write log files to the `/usr/local/cwpsrv/var/services/roundcube/logs/` directory, with a message like this:


2026/10/19 21:06:04 [error] 3687601#0: *253 FastCGI sent in stderr: "PHP message: PHP Warning:  file_put_contents(/usr/local/cwpsrv/var/services/roundcube/logs/imap.log): failed to open stream: Read-only file system in (continue...)


You simply need to authorize systemd to write files to that folder, using the version of PHP you have chosen.

For example, I chose to use php-fpm74, so I need to edit its startup file with the following command:

# systemctl edit php-fpm74


Include the following directive in the [Service] section:

[Service]
ReadWritePaths=/usr/local/cwpsrv/var/services/roundcube/logs/


And restart your php-fpm:

# systemctl restart php-fpm74


(thanks, overseer ;D)

ghoste

Thank you, everyone.

Before asking for help here on the forum, I used Claude to go through Netino's procedure and tested it on a fresh VPS with CWP installed. The procedure worked, but I discovered two issues:

Roundcube webmail redirect issue: Accessing host.domain.com or mail.domain.com works correctly. However, when I access domain.com/webmail, the Roundcube login interface opens normally, but after entering my email address and password, I am automatically redirected to domain.com instead of being logged into Roundcube.

High process usage in CWP: After following the procedure, I noticed that the number of running processes in CWP started increasing significantly. In my case, the server was running PHP 8.3, although I am not sure whether the PHP version is related to this issue.

Has anyone experienced similar issues or knows what might be causing them?

Thank you for your help.