There isn't anything special that is needed for Roundcube a typical php-fpm config should work. The only thing I find odd in the nginx config is the "try_files $uri =404;" in the "location ~ \.php$" I don't typically see it there. Otherwise check the nginx log and see what it says there.
Thank you SKaero, now I have the login page of roundcube !
Unfortunately, I now have the same problem I had before on Apache (one of the reasons that made me change to Nginx but not the only one): When attempting to connect I get an "Could not connect to storage server" error.
The package php7.4-sqlite3 is already installed
The logs says:
/var/log/roundcube/errors.log
[02-Nov-2021 20:29:00 +0100]: <qtkpev9m> IMAP Error: Login failed for user@server.com against localhost from 192.168.1.8. Could not connect to ssl://localhost:993: Unknown reason in /usr/share/roundcube/program/lib/Roundcube/rcube_imap.php on line 200 (POST /?_task=login&_action=login)
It seems to be related to the SQL database (I'm using sqlite3)
/etc/roundcube/debian-db.php
<?php
##
## database access settings in php format
## automatically generated from /etc/dbconfig-common/roundcube.conf
## by /usr/sbin/dbconfig-generate-include
##
## by default this file is managed via ucf, so you shouldn't have to
## worry about manual changes being silently discarded. *however*,
## you'll probably also want to edit the configuration file mentioned
## above too.
##
$dbuser='roundcube';
$dbpass='';
$basepath='/var/lib/dbconfig-common/sqlite3/roundcube';
$dbname='roundcube';
$dbserver='';
$dbport='';
$dbtype='sqlite3';
/etc/roundcube/debian-db-roundcube.php
<?php
include_once("/etc/roundcube/debian-db.php");
switch ($dbtype) {
case "sqlite":
case "sqlite3":
$config['db_dsnw'] = "sqlite:///$basepath/$dbname?mode=0640";
break;
default:
if ($dbport != '') $dbport=":$dbport";
if ($dbserver == '') $dbserver="localhost";
$config['db_dsnw'] = "$dbtype://$dbuser:$dbpass@$dbserver$dbport/$dbname";
break;
}
?>
The database file well exists and has the following permissions:
-rw-rw---- 1 www-data www-data 167936 2 nov. 21:06 roundcube