Checked for php mysql using apt list --installed | grep php. It wasn’t there,
ran
apt install php8.0-mysql
phpenmod pdo_mysql
and restarted. Error logged in nginx error.log is now:
2024/08/02 10:16:30 [error] 1054#1054: *2 FastCGI sent in stderr: "PHP message: PHP Warning: file_put_contents(/usr/local/lib/roundcubemail/logs/errors.log): Failed to open stream: Permission denied in /usr/local/lib/roundcubemail/program/lib/Roundcube/rcube.php on line 1380PHP message: PHP Warning: SQLSTATE[HY000] [2002] No such file or directory in /usr/local/lib/roundcubemail/program/lib/Roundcube/rcube.php on line 1503" while reading response header from upstream, client: REDACTED, server: box.REDACTED.com, request: "GET /mail/ HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php8.0-fpm.sock:", host: "box.REDACTED.com", referrer: "https://box.REDACTED.com/"
It doesn’t look like mysql is running, i’m guessing there should be an instance on the box?
Ah looks like roundcube is altered to use a sqlite database instead. Hmm now I’ve no idea where to turn next. Anybody had a similar problem with a fresh install?
This was a permissions issue during installation. For some reason the permissions on the roundcube config file that the setup process creates were incorrect. This meant that roundcube was defaulting to invalid configuration.